Results 1 to 6 of 6

Thread: Does a website cannot be located without index.html

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2010
    Posts
    965

    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?

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    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.

  3. #3
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    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.

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Does a website cannot be located without index.html

    Quote Originally Posted by techgnome View Post
    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.

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width