I'm trying to find a way make rewrite rules not to interfere with each other.
RewriteCond %{HTTP_HOST} ^(www\.)?domain1\.com
RewriteRule ^old-url.html(.*)$ /new-url-1/? [R=301,NC,L]
RewriteCond %{HTTP_HOST} ^(www\.)?domain2\.com
RewriteRule ^old-url.html(.*)$ /new-url-2/? [R=301,NC,L]
RewriteCond %{HTTP_HOST} ^(www\.)?domain3\.com
RewriteRule ^old-url.html(.*)$ /new-url-3/? [R=301,NC,L]
RewriteCond %{HTTP_HOST} ^(www\.)?domain4\.com
RewriteRule ^old-url.html(.*)$ /new-url-4/? [R=301,NC,L]
If I access, let's say www.domain4.com/old-url.html
I'm redirected to www.domain4.com/new-url-1/
Any ideas? Thanks,