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 *! Link to comment https://forums.phpfreaks.com/topic/33283-can-this-be-written-more-efficient/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.