Well, i found out that msn is indexing the wrong url to my site so i'm using htaccess to send it to the correct url. I can redirect the url without www but how do i redirect the www? I tried it but it didn't work :S What am i doing wrong here: RewriteEngine On RewriteCond %{HTTP_HOST} ^wrong_domain.nl$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.wrong_domain.nl$ [NC,OR] RewriteCond %{HTTP_HOST} ^domain.com$ [NC] RewriteRule /(.*) http://www.correct_domain.com/$1 [R=301,L] Code (markup):
Just check if you're *not* at the right domain and then redirect it <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.your_correct_domain\.com [NC] RewriteRule ^(.*) http://www.your_correct_domain.com/$1 [L,R=301] </IfModule> Code (markup):
Thx! That worked I've got 2 htaccess files, one in the root folder and one in the www folder. The one in the www folder didn't work.
Create your www subdomain and just point it to the same folder (root folder) that the non-www version of your domain goes to, and the .htaccess file will do the rest.