Forum Moderators: phranque
http://www.mysite.com (i.e. requests for http://www.coosite.com or http://coosite.com would become http://www.mysite.com). This avoids Google's duplication penalty and ensures that "www" is always used (I don't like that but I need it for license reasons). RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.mysite\.co.uk [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.mysite.co.uk/$1 [L,R=301] http://www.mysite.co.uk visitors to wordpress in my /content dir, at least not without breaking the above multi-domain redirect. I tried putting this below and it sent the server slow and crashing. RewriteCond %{REQUEST_URI} !content/
RewriteRule ^(.*)$ content/$1 [L] !^www\.example\.co.uk [NC] (why escape only two of the three periods?) to this new pattern !^(www\.example\.co\.uk)?$ and remove both the [NC] flag and the second RewriteCond.