I was just checking backlinks and have just noticed that i get different number of backlinks for www and without www. So I did some research and found out that i need to use the 301 redirect so that i dont get penelized by google and so that google doesn't see them as 2 seperate url's. So can someone help me out on how to do this? I heard that i'm supposed to change the htaacces file. But what do i have to change, this is htaccess code. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Thanks
Or add this to it: RewriteCond %{HTTP_HOST} ^yourdomain\.tld [NC] RewriteRule .? http://www.yourdomain.tld{REQUEST_URI} [R=301,L] Code (markup): (replace yourdomain with your domain name and tld with your top level domain such as com net org)
ha ha, i was just trying to figure out how to do this today Dan where does the code go for the non techie? or would it be easier to just install the plugin below? (any upsides downsides?)
Doesn't matter which way you do it. If you edit the .htaccess it won't effect anything else. Which ever way is easier for you.
I could have sworn that wordpress strips the www automatically. At least with wpmu it does this. Been awhile since I used the regular wp software. Usually the plugins are for adding the 'www' bit back in.