Why dont all URLs of pages within a website end in .html?
kitkat
2011-04-24 06:58:41 UTC
I dont understand how, when you look at the URL of pages within a website, they often dont have any sort of standard ending. eg, the articals on wikipedia just have the name of the page at the end. Why dont they end with .html or .php or similar?
Four answers:
anonymous
2011-04-24 18:31:10 UTC
Depends on what the link is referring to and what they are using, PHP, ASP, SSI, etc.. Tose that find files in a database will not look like the standard links. Just like YA's:
A URL may point to a specific file, but there's no requirement that the URL reflect any particular OS-specific way of identifying file types, such as filename extensions. Browsers do not determine what type a resource is by the filename extension, even if there is one; they use the Content-Type HTTP header.
anonymous
2011-04-24 14:09:02 UTC
i think this is because when the website is made, it is already put as HTML in the website creation. for instance
I download a song into mp3 to put on my phone, but when i save it; it doesnt have .mp3 at the end because it is an mp3 file,
i think its the same prospective for a website too. :)
ChaosGrimm
2011-04-24 14:29:29 UTC
The file is inferred.
For example, google.com and google.com/index.html will take you to the same place.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.