|
-
May 21st, 2012, 10:58 PM
#1
Thread Starter
Fanatic Member
Does a website cannot be located without index.html
Hi. I have heard that if your website does not have index.html or index.php page so your website cannot be located on server. It is indispensable to make this page. Is it true?
-
May 22nd, 2012, 12:18 PM
#2
Re: Does a website cannot be located without index.html
Not true at all. A DirectoryIndex can be set to any file you want, so it doesn't need to be "index.[anything]." You can also omit index functionality and make the directory contents viewable instead. Furthermore, even if you don't do either of the above, other public pages on your site are still findable and accessible.
-
Jun 13th, 2012, 09:24 AM
#3
Re: Does a website cannot be located without index.html
I just went to my web site and renamed index.html to something else and I was not able to navigate to my web site.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
-
Jun 13th, 2012, 10:56 AM
#4
Re: Does a website cannot be located without index.html
web servers generally have a setting that controls what the default document is. it's usually index.* .... html, htm, php, asp, aspx, and so on... if it can't find the first one, it rolls down the line until it reaches the end of the list. I've messed with this setting before so that it used default.html as the default document... so you can set it to anything you want.
You get an error when the server cannot find any of the files that you've specified as the default document. that doesn't mean you can't navigate to it directly though... it just won't do it automatically.
-tg
-
Jun 13th, 2012, 11:20 AM
#5
Re: Does a website cannot be located without index.html
 Originally Posted by techgnome
that doesn't mean you can't navigate to it directly though... it just won't do it automatically.
-tg
What does directly mean? If my index.html is missing how then do I navigate directly to my web site?
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
-
Jun 13th, 2012, 11:31 AM
#6
Re: Does a website cannot be located without index.html
http://www.mywebsite.com/somefilethatisntindex.htm <-- that's what I mean by directly....
OK... fair enough, I wasn't clear in what I said... in my head I knew what I meant... what I should have said was this:
that doesn't mean you can't navigate directly to the file though
-tg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|