Webserver directory index

El directorio enciclopédico desde la Wikipedia.

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.[1] 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.

[edit] Entrance

www.wikipedia.org, the index of Wikipedia, a multilingual online encyclopedia. Here the page offers many different languages.

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

[edit] See also

[edit] Notes

  1. ^ Some Microsoft server implementations, such as Microsoft Personal Web Server, use the filename main.htm by default. Porting sites from Microsoft hosting to Apache hosting can, therefore, require extensive editing to replace all instances of hyperlinks to main.htm to hyperlinks to index.html or index.htm.
Página espejo de la Wikipedia
Directorio de Enlaces Directorio dmoz Directorio espejo dmoz Pedro Bernardo