Quote:
Originally Posted by PaulMycroft
If you are asking how a web page that should be called "www.domain.com/pagename.html" but is called "www.domain.com/pagename" (not a directory), the answer is that some browsers are more forgiving than others.
|
This is somewhat the case, but there is another factor on the server side. Wikipedia for example does not use file extensions, but all of their pages display properly in all major browsers. The reason is that the file extension is irrelevant on web documents. The server includes a header that tells the browser how the file should be rendered - as an image, a text file, a pdf file, a web page, etc. If you do not take special measures to cause the server to label files without extensions as web pages, the server will say that they are plain text. Some browsers will display plain text files containing HTML as web pages, others display the files as plain text.