Redirect non www Urls via htaccess

This is a very simple redirect using .htaccess but a good SEO tweak that will do wonders for getting the most out of your Page Rank.

I have chosen to redirect to non-www but there is absolutely no SEO benefit or loss to choosing one over the other. The important thing SEO wise is to just choose one and stick with it.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.



%d bloggers like this: