banrep Posted April 14, 2011 Share Posted April 14, 2011 I cant seem to find the answer to this anywhere in the forum, so here it goes:Google webmaster tools says I have two sites:http://mysite.com andhttp://www.mysite.comHow can i redirect pages without "www" to http://www.mysite.comAppreciate any help,Thanks. Link to comment Share on other sites More sharing options...
fabfab Posted April 14, 2011 Share Posted April 14, 2011 place this in your htacces :RewriteEngine onRewriteCond %{HTTP_HOST} !^www\.mysite\.com [NC]RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301]everything from http://mysite.com goes to www.mysite.com.This is the google friendly way. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now