Difference between revisions of "Default file name"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
 
Line 15: Line 15:
  
 
* [[Filename]]
 
* [[Filename]]
 +
 +
 +
[[Category:Computer science]]
 +
[[Category:Web design and development]]

Latest revision as of 10:34, 21 August 2016

A default file name is a file name which will be used by default, if no name is provided.

Default web server file names

Web servers typically support default file names.

When the server receives a request, and the request does not include a file name in the URL, the server looks for a default file. The server has a list default file names. The server checks the list to see if a default file exists; if it does, the server returns that file.

Typical default files names include:

  • index.html - for HTML web pages.
  • index.php - for PHP web pages.

See also