none of the sites that I use [put .htm in urls] Why not?
Simple answer:
Most sites offer dynamic content instead of static html pages.
Longer answer:
The file extension does not matter. All about web server configuration.
The web server checks the file extension, then it knows how to process it (send .html directly to the client, run .php via mod_php and create an html page, etc.). This is customizable.
The web server then sends the content to the client (static or generated), and the http protocol includes indicating to the client the type of content in the headers before sending the web page.
By the way, .htm is no longer required. We no longer use DOS with 8.3 file names.
Make it even harder: :-)
The web server can rewrite URLs. For example, it can redirect all form URLs: www.foo.com/photos/[imagename] to the actual script located at www.foo.com/imgview.php?image=[imagename]
John smith
source share