0

Naming your main page index

Probably a really dumb question but here it goes... When I'm making random practice websites is it standard for every "home page" to be saved as index.html? So at some point I might have a bunch of "index.html" 's, do I just add the folder name to differentiate these to the href? FirstHTMLpage/index.html, SecondHTMLpage/index.html like this? Sorry, like I said, probably a dumb question.... Thanks!

20th Dec 2018, 12:04 AM
Nick
Nick - avatar
4 Réponses
+ 6
No it's not. It depends on your web server and its configuration. By default apache has "index" file as a "home" or "root" page. You can change it with .htaccess or from config. When you get into nodejs, django or laravel frameworks, you must specify all routes by yourself.
20th Dec 2018, 1:48 AM
Toni Isotalo
Toni Isotalo - avatar
+ 1
You can have a separate folder for each menu link, so folder name definitely becomes part of the url. I do that usually.
20th Dec 2018, 1:42 AM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 1
I suggest you do in this way: 1. Only keep one index.htm in root directory. 2. Name your practice webpage meangingly. 3. Put them all in a folder called practice, which is in root. 4. In index page, add hyperlink href=".../practice/target.htm"
20th Dec 2018, 1:58 AM
Gordon
Gordon - avatar
0
Hello all, i am very very new to web development, already learnt html n am presently on css, i do know some tags and can do simple webpages ...my questiin here is about the web server , how do i upload , what are the frameworks to follow while uploading to a webserver, like index.html ,and others , also can i use joomla or xampp to run d site on my local system. Please any suggestion n contribution will be really helpful or any1 with pdf too...thank you
20th Dec 2018, 7:01 AM
Musa Jamiu
Musa Jamiu - avatar