Click to See Complete Forum and Search --> : [RESOLVED] Why do some webpages have no extensions?


narutodude000
04-29-2010, 06:26 PM
Like www.example.com/folder/file instead of www.example.com/folder/file.html

Jarrod1937
04-29-2010, 07:36 PM
Those sites are using url rewriting, and are more than likely using mod_rewrite:
http://www.workingwith.me.uk/articles/scripting/mod_rewrite

Though i've seen google mention in one of their videos that they prefer rewrites to still use a related extension, so that they don't have to guess what type of output it'll give. So if you do rewriting i'd suggest adding a html extension or something related to it.

sohguanh
04-29-2010, 11:22 PM
Those sites are using url rewriting, and are more than likely using mod_rewrite:
http://www.workingwith.me.uk/articles/scripting/mod_rewrite

Though i've seen google mention in one of their videos that they prefer rewrites to still use a related extension, so that they don't have to guess what type of output it'll give. So if you do rewriting i'd suggest adding a html extension or something related to it.

Besides URL re-write, there are scenarios where URL is not supposed to return a HTML page so as to speak. Imagine it is written to answer web browser Ajax calls ? So the return is in XML message format so the extension is not needed.

narutodude000
04-30-2010, 11:41 AM
Thanks, I was just curious.