0
I have 2 domains, example.com and example.com.br pointing to the same wordpress site.
I would like to redirect every time someone enters example.com, be redirected to example.com.br/en
I found this code, but it also redirects example.com.br to /en
RewriteEngine on
RewriteCond %{HTTP_HOST} !^example\.com$
RewriteRule ^ http://www.example.com.br/en [L,R=301]
Someone can help me?
P.S.: Preferably works both with 'www' and without.
Good afternoon @Amadeuantunes I think it is not a duplicate of this specific question.
– Guilherme Nascimento