So I have this two sub sites that needs to be redirected into a different locale but has the same source, but only the first rewriterule takes effect for the both domain.
what should happen:
example-site1.com/register ----> https://register.index.com/en-us
example-site2.com/register ----> https://register.index.com/en-gb
what's happening for this code below:
example-site1.com ----> https://register.index.com/en-us
example-site2.com ----> https://register.index.com/en-us
###########################
RewriteCond %{HTTP_HOST} ^example-site1\.com [OR]
RewriteCond %{HTTP_HOST} ^www\.example-site1\.com
RewriteRule ^/(registration|registration/)$ https://register.index.com/en-us [L,R=301]
RewriteRule ^/(register|register/)$ https://register.index.com/en-us [L,R=301]
RewriteCond %{HTTP_HOST} ^example-site2\.com [OR]
RewriteCond %{HTTP_HOST} ^www\.example-site2\.com
RewriteRule ^/(registration|registration/)$ https://register.index.com/en-gb [L,R=301]
RewriteRule ^/(register|register/)$ https://register.index.com/en-gb [L,R=301]