20 February 2012
Category:
Web Design
Comments: 0

301 redirect and SEO

A 301 redirect is an effective on-page SEO method to let search engines know exactly where your domain is. A great SEO method/trick that I have learned is pointing the url WITHOUT the “www.” in front of it, to the url WITH the “www.” so that any link pointing to either of those, will be credited to the same site. Google will view www.yourdomain.com and yourdomain.com as different sites, so when you have links pointing to both of those, you aren’t getting full credit for your inbound links. You can accomplish a 301 redirect by creating an .htaccess file with the code below and placing it in your root folder:

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

Please REPLACE www.yourdomain.com in the above code with your actual domain name.

*This method works for linux servers*

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>