Home > Technical & Creative Skills > Programming, Servers & Scripts

Two landers in one folder on your server? (4)


05-10-2017 09:12 PM #1 success1 (Member)
Two landers in one folder on your server?

Hello, when you're creating two landing pages in the same directory of your server, do you need two different index.html pages, one per page, stored in the same folder? Or would you just use one index.html page


05-10-2017 11:33 PM #2 Tyoussef_PureLander (Member)

well you can't put 2 files with the same name and extension in the same folder .

if i was you i will create a folder for each landing page .

but if you have to , you can name the first file index.html and name the second one index2.html .

the first one will be accessed without typing the the file name in the url .
the second one index2.html you have to type it in your address bar in order to preview it .
that's the rules

good luck


05-11-2017 03:18 PM #3 matuloo (Legendary Moderator)

I'm with Tyoussef here, there is no real reason that I could think of, for putting multiple LPs into one folder ... but if you have a reason for that, use different filenames ... good examples are enter.html, start.html or even index2.html.

Just one thing to keep in mind when doing this, every webserver is configured to "look" for certain files first, in case you don't use full path urls, down to particular file. So for example : www.domain.com/lander/ ... if you link to this, the webserver will search for one of these : index.html, index.htm, index.php ... in some cases default.html or default.php ... and the priority can be modified I believe. So if you have several LPs in one directory, make sure to use the complete full path like : www.domain.com/lander/index.html ...


05-11-2017 07:30 PM #4 osmiumman (Member)

I usually use the same folder when spilt testing small variations in just the Index.html file. I copy Index.html to for example index2.html for the test, but yes, you could also copy the whole folder.


Home > Technical & Creative Skills > Programming, Servers & Scripts