which index.html does the server use?

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

09-May-09 21:55
I understand that the server must find an index.html file (or index.php) on the server.
I have a webpage, but cannot find the index.html on the remote site which it is using. By changing the name index.html in all the possible locations I can find, and the site still works!
Why is this please?
Also, the remote site uses (I thought) a directory called www. Is there any significance in the choice www?
gemma1865
09-May-09 22:25
An index file is not required. It is only used if the visitor attempts to browse a folder in the site, rather than view a specific page.

The 'www' folder is probably your document root (the top level of your site).

--
Matt Doyle, Elated
Second Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
10-May-09 09:08
Thanks for your quick reply.
Is it possible to change the root to the next level up, as I am trying to make changes simple for someone who is to update certain files?
How does the server "know" what file to run if there is no index.html file in the root?
I have put my own index.html in the (www) root, but it is not run!
gemma1865
11-May-09 02:50
I'm not sure what you mean by "change the root to the next level up". The document root folder is defined in the Web server configuration. If you have root/admin access to the server then you can change the document root for the site there.

If there is no index file in a folder then the Web server usually displays a directory listing of all the files in the folder, unless this feature has been disabled in the server config.


--
Matt Doyle, Elated
Second Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/

 
New posts
Old posts

Follow Elated