Forum Moderators: phranque
RewriteCond %{HTTP_HOST}!^www\.mysite\.com [NC]
RewriteRule ^(.*) [mysite.com...] [L,R=301].
To redirect mysite.com to www.mysite.com.
Now I've a new domain (addon in the same account), and these rewrite rules are sending addon.com to mysite.com/addon.
Anyone has a hint on how to keep addon.com from being redirected without removing these mod rules?
Thanks a lot.
You can use an alternate form that will redirect ONLY mysite.com to www.mysite.com:
RewriteCond %{HTTP_HOST} ^mysite\.com [NC]
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim