Encyclopedia @ Vestigatio Search
Web    Encyclopedia    News    Blogs    Forums   

Webserver directory index


When an HTTP client (generally a web browser) requests a URL that points to a directory structure instead of an actual web page within the directory, the web server will generally serve a general page, which is often referred to as a main or "index" page.

index.html is the traditional filename for such a page, but most modern HTTP servers offer a configurable list of filenames that the server can use as an index. If a server is configured to support server-side scripting, the list will usually include entries allowing dynamic content to be used as the index page (e.g. index.php, index.shtml, default.asp). An example is the popular open source web server Apache, where the list of filenames is controlled by the DirectoryIndex directive in the main server configuration file or in the configuration file for that directory.

If the server is unable to find a file with any of the names listed in its configuration, it may either return an error (generally 404 Not Found) or generate its own index page listing the files in the directory. Usually this option is also configurable.

In theory, for relative links to function properly, the URL pointing to a directory should end with a forward slash. Otherwise most web servers will send an HTTP redirect to add the slash.

For example, strictly speaking http://www.example.com is not a valid URL and most browsers and servers will redirect to http://www.example.com/ where the index page from the root directory will be displayed.

Entrance


Since the index page is often the first page of a website that a user sees, it is sometimes used to offer a menu of language options for large websites which use geo targeting.

See also


Home page
Apache API for mod_rewrite

   
   
This section is sponsored by:

Lowest Priced Computers
Get the lowest prices on laptops, desktops and computer accessories
www.Geeks.com


Laptops
Info On Laptops.
www.ShopicA.com


Get a Mac Computer
Find the Mac computer that fits your needs from the Macbook to the iMac
store.apple.com


HP Laptops & Notebooks
Find great deals on HP laptops & notebooks along with accessories for your computer.
www.shopping.hp.com


Laptops at Low Prices
Find the laptop you are looking for at the lowest prices. Buy now and save!
www.BestBuy.com


Laptops
Looking for Laptops? Search and Compare Online.
www.FindStuff.com


Buy Laptops
Top Buy Laptops Offers. Huge Selection of Buy Laptops!
Laptop.Dealsplace1.com




©2009 Vestigatio