I have several domains (en.example.com, heb.example.com etc) that all point to the same WordPress website.
I need to make domain-specific redirects (en.example.com/About -> en.example.com/about-us). The issue is that if we use 1 Vhost for all domains, it seems that in a setup like this, OpenLiteSpeed just straight up ignores RewriteCond and redirects heb.example.com/About to en.example.com/about-us/:
So I assume the solution for that would be to make several Vhosts that point to the same folder? I tried that, but other Vhosts just return empty page.
I need to make domain-specific redirects (en.example.com/About -> en.example.com/about-us). The issue is that if we use 1 Vhost for all domains, it seems that in a setup like this, OpenLiteSpeed just straight up ignores RewriteCond and redirects heb.example.com/About to en.example.com/about-us/:
Code:
RewriteCond %{HTTP_HOST} ^en\.example.com\.com$ [NC]
RewriteRule ^About$ https://en.example.com/about-us/ [R=301,L,NC]
RewriteCond %{HTTP_HOST} ^heb\.example.com\.com$ [NC]
RewriteRule ^About$ https://heb.example.com/about-us-he/ [R=301,L,NC]