I am having an issue that is very similar to the one described here, which was never resolved.
I have a WordPress Multisite install with subdomains and I'm trying to get the old URLs to redirect to the new ones.
Basically, I'm using
RewriteCond %{HTTP_HOST}
to target each subdomain, with a batch of RewriteRules following.
Here is a small snippet of my code:
# Rewrite rules for French site
RewriteCond %{HTTP_HOST} ^fr.nomacorc.com$ [nc]
RewriteRule ^home\.php$ http://fr.nomacorc.com/ [R=301,NC,L]
RewriteRule ^aboutus\.php$ http://fr.nomacorc.com/propos-de-nous/ [R=301,NC,L]
RewriteRule ^ourclosures\.php$ http://fr.nomacorc.com/bouchons-pour-le-vin/ [R=301,NC,L]
# Rewrite rules for German site
RewriteCond %{HTTP_HOST} ^de.nomacorc.com$ [nc]
RewriteRule ^home\.php$ http://de.nomacorc.com/ [R=301,NC,L]
RewriteRule ^aboutus\.php$ http://de.nomacorc.com/uber-uns/ [R=301,NC,L]
RewriteRule ^ourclosures\.php$ http://de.nomacorc.com/weinverschlusse/ [R=301,NC,L]
What I want to have happen is for de.nomacorc.com/aboutus.php to redirect to de.nomacorc.com/uber-uns, but instead it's redirecting to fr.nomacorc.com/propos-de-nous/. Same thing is happening with the ourclosures.php redirect.
What am I doing wrong with this code?