Free Search Engine Visibility Report

Newsletter Sign Up

First Name:

Last Name:

Email:

 

Free Resources

New MoreVisibility Webinars Complimentary Webinar
 
SEO: Google Mayday & Caffeine
 

Page Name Canonicalization and the htaccess File

January 21st, 2010 by Lee Zoumas

Sometimes the same page in a website can get indexed multiple times, which could potentially create a duplicate content issue and penalty. The best example of this is a website’s default or home page…

http://www.domain.com/
http://www.domain.com/index.htm

Although both of these URLs resolve to the same page, the search engines could index both of them, or possibly one and not the other. However, situations like this are not just isolated to the home page. Most websites will have default filenames in URLs contained in subdirectories like this…

http://www.domain.com/about/
http://www.domain.com/about/index.htm

… which causes the same issues as the home page.  Additionally, sometimes the internal page linking structure could link to the page with or without the index.htm filename present. To prevent the default page from being accessed by its filename, we can add the following rule to our .htaccess file:

RewriteRule (.*)(index|home|default)\.(html|asp|aspx|htm|php)$ $1 [NC, R=301]

With this rule in place, when any page is requested with the default filename (index.htm) in the URL, the user will get 301 redirected to the default page without the filename. This will ensure that the default filename is never in the URL and that only one version of that page will get indexed by search engines.

Posted in SEO & Web Development

Comments are closed at this time.


Subscribe rss feed Login or Register

Recent Articles

Article Categories

Articles by Month

Related Sites


Inc 5000 Google Analytics Authorized Consultant Google Qualified Company Yahoo Certified Ambassador Microsoft adExcellence Member Greenified 2009

MoreVisibility
925 South Federal Highway, Suite 750
Boca Raton, Florida 33432, USA

800.787.0497

ph: 561.620.9682

fx:  561.620.9684


© 1999 - 2010 MoreVisibility ® All Rights Reserved. Privacy | Legal

MoreVisibility Social Networking Links YouTube LinkedIn Facebook Twitter