Saturday, May 14, 2011

Update Wordpress Blog for Canonical URL (show www)

Google will penalize your web site or blog if they think it contains duplicate content.  If you don't configure a canonical URL where your site name converts to www.yoursitename.com, your content may be considered duplicitive.

According to Wikipedia, URL normalization (or URL canonicalization) is the process by which URLs are modified and standardized in a consistent manner.

For Wordpress blogs, updating your URL to be SEO friendly, just go to your root directory and edit your .htaccess file to the following:

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^yoursitename.com [nc]
rewriterule ^(.*)$ http://www.yoursitename/$1 [r=301,nc]
Redirect /folder http://www.yoursitename

No comments:

Post a Comment