Proper 301 Redirect URL

Status
Not open for further replies.

LuDo8

Active Member
402
2010
39
0
Hey guys, so I ran my website through WebsiteGrader and it tells me no Permanent 301 Redirection found. Looked it up on google, people say that I won't get my full page rank and credit because google will think www.mywebsite.com and mywebsite.com are two seperate sites.

I used this code for my .htaccess in my root Dir.

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

And it still gives me that error, I've tried a few different variations I found on google, none works.

So which is the proper one? Mind sharing yours if you got it properly? Thanks in advance.
 
3 comments
Cool, thanks duality and Nick, I did Both going to google webmasters and using that version. And now everything is sorted. Thanks guys.
 
Status
Not open for further replies.
Back
Top