Take the 2-minute tour ×

I have two domains: myenglishdomain.com and myfrenchdomain.com. They both point to the same folder on my server (the english domain). The way I've structured the server is that the english content is at myenglishdomain.com/en and my french content is at myenglishdomain.com/fr (note: my english domain, not the french one).

when a user types in myfrenchdomain.com/content I'd like the URL to still read myfrenchdomain.com/content, and yet point to myenglishdomain.com/fr/content

is this possible? What would be the rule(s) to make this happen?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted
RewriteCond %{HTTP_HOST} ^myfrenchdomain.com
RewriteRule ^/content/(.*) http://myenglishdomain.com/fr/content/$1 [P]
share|improve this answer
So THAT's what the [proxy] flag is for! –  Tom Auger Aug 17 '11 at 16:26
add comment

Your Answer


