Results 1 to 6 of 6

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

  1. #1
    Fanatic Member
    Join Date
    Nov 10
    Posts
    771

    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 09
    Location
    CA, USA
    Posts
    1,500

    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 08
    Posts
    6,753

    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.
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 02
    Posts
    21,636

    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 subscribe to all threads I participate, so there's no need to pm when there's an update.*
    *Proof positive that searching the forums does work: View Thread *
    * 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??? *
    * Use Offensive Programming, not Defensive Programming. * On Error Resume Next is error ignoring, not error handling(tm).
    "There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN

  5. #5
    PowerPoster
    Join Date
    Jan 08
    Posts
    6,753

    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?
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved


    When I was young and in my prime I used to program all the time but now I'm old and getting gray I only program once a day

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 02
    Posts
    21,636

    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 subscribe to all threads I participate, so there's no need to pm when there's an update.*
    *Proof positive that searching the forums does work: View Thread *
    * 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??? *
    * Use Offensive Programming, not Defensive Programming. * On Error Resume Next is error ignoring, not error handling(tm).
    "There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN

Posting Permissions

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