Moldarin Posted January 8, 2007 Share Posted January 8, 2007 Hi,Can I somehow write this more efficient? And maybe actually get it working too? :D[code]RewriteEngine OnRewriteCond %{HTTP_HOST} ^second-domain\.com$ [NC,OR]RewriteCond %{HTTP_HOST} ^www\.second-domain\.com$ [NC,OR]RewriteCond %{HTTP_HOST} ^thirddomain\.com$ [NC,OR]RewriteCond %{HTTP_HOST} ^www\.thirddomain\.com$ [NC,OR]RewriteCond %{HTTP_HOST} ^www\.first-domain\.info$ [NC,OR]RewriteCond %{HTTP_HOST} ^www\.first-domain\.com$ [NC,OR]RewriteRule ^(.*)$ http://first-domain.com/$1 [R=301,L][/code]It works if I drop ",OR" and add a rule under each condition though... But then it runs slow as *! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.