I'm using a rewrite to direct whole root domain to another domain.
Though I use some rules to stop a subdomain from being redirected also.
One problem I'm having is setting this to stop 2 subdomains from redirecting rather than just one. Here is the code I'm using.
What do I need to add to stop another 2 subdomains redirecting called themes.mydomain.com & wp.mydomain.com?Code:Options +FollowSymLinks RewriteEngine on # Stop pro rewriteCond %{HTTP_HOST} ^forum\.mydomain.com$ rewriteRule .* - [L] #skip if rewriteCond %{HTTP_HOST} ^forum\.mydomain.com$ rewriteRule .* - [S=2] #continue pro RewriteCond %{HTTP_HOST} ^www.mydomain.com$ RewriteRule ^(.*)$ "http\:\/\/www\.my new domain\.com\/$1" [R=301,nc]
Thanks all.


Reply With Quote
Bookmarks