I have a bilingual WordPress site that I am changing the domain for and the following redirect works great.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^newdomain.com$
RewriteRule ^ http://newdomain.com%{REQUEST_URI} [L,R=301]
The problem is I would like to have
olddomain.com/one/two/three
to redirect to
newdomain.com/en/one/two/three
but keep
olddomain.com/fr/one/two/three
redirecting to
newdomain.com/fr/one/two/three
You can place this rule just below
RewriteBase
line in your main WP .htaccess: