PDA

View Full Version : 301 Redirect?


Unfolded90
10-01-2013, 09:28 PM
Hello,

Google webmaster tools suggested that i 301 direct from http://mysite.com to http://www.mysite.com

Im unsure exactly how to go about doing this so all help would be appreciated

ozzy47
10-01-2013, 09:48 PM
I believe this should work if you add it to your .htaccess

RewriteEngine On
rewritecond %{http_host} ^yoursite.com (http://yoursite.com)
rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L]You can add it and test it to ensure it works, just change yoursite.com to your sites url