I've been playing with this for a couple of days using research and trial and error!
- Everything is hosted on frenchdomain.com
- The English version of the site uses /en_index.php?p=page
- The French version uses /index.php?p=page
This is what I guess should be the .htaccess (i.e. regardless of www., and regardless of whether default index file specified or just blank, redirect to en_index on the English domain)...
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?englishdomain\.com [NC]
RewriteCond %{HTTP_HOST} !^(www\.)?frenchdomain\.com [NC]
RewriteRule ^/$ en_index.php [L,r=301]
RewriteRule ^index.php$ en_index.php [L,r=301]
The current result of the above is:
- frenchdomain.com works in French (correct)
- englishdomain.com works in French (incorrect)
- englishdomain.com/index.php works in English (correct)
I guess it's my third line of code...?
Thanks in advance!
R