homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

Mod Re Write Formatting
Is there a best practice protocol?

 7:26 am on Jun 19, 2008 (gmt 0)

Dear all

We are using mod_rewrite on a project at the moment and currently have URL's following a basic format such as:


My question is, is there any advantage to adding a file extensions to the URL such as


Is there any advantage for the user or the search engine in using an extension and creating an impression of viewing 'a page'?




 10:11 pm on Jun 20, 2008 (gmt 0)

Probably a question for the Apache forum.

I would say that there is no advantage to showing an extension - neither search engines nor users care, and if you ever change from PHP to something else it will be extra work.



 8:52 am on Jun 21, 2008 (gmt 0)

Thanks for your reply. Will note the Apache forum for next time.


 8:23 am on Jul 13, 2008 (gmt 0)

If you must add an extension, add one which indicates the content of the file not the technology which generated it. Therefore, an HTML file could usefully end in .html, but gains nothing by ending in .php. Then again - HTML may not be the language of choice for webpages in the future - so play it safe and put nothing there as an extension.

Personally - I like to customise the extension to the site - perhaps a site about Widgets would have pages ending in .widget... probably SEO benefit as well as a chance for added branding.

Classic link: Cool URI's don't change [w3.org]


 4:48 pm on Jul 28, 2008 (gmt 0)

I believe the general consensus today is to get away from any extensions. And this is what I have seen many websites do.


Personally I think this is very wrong, and my experience is that if your page generates html, give it an .html ending...

I also have non-conclusive evidence that this actually helps your SEO ranking with Google these days. And not just marginally, but by a good percentage.

There is also the benefit of not confusing anyone or anything [spiders,bots,crawlers] of whether URL /cat/sub[/] is a page or a folder. Most of them will try to add an ending '/' to see if they can get into it deeper. And if you do not have the proper mod_rewrite rules set, you are going to have duplicate content. Yes, Google is smart enough to figure it out, but you will still get penalized a bit.


 6:45 pm on Jul 28, 2008 (gmt 0)

Thanks Tower - interesting points

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved