www.example.com
to
anotherdomain.com
Calls to example.com (without www.) should NOT be affected on this. Normally this would be easy, but the special thing about this is that I want to execute the same script on a bunch of domains, so I can't put the specific domain-name inside the rewrite-rule.
Do you have any ideas how to do this?
Th开发者_如何转开发anks!
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://anotherdomain.com/$1 [R=301,L,QSA]
精彩评论