My site handles two languages, French and English, with the default being french.
www.example.com = french
en.example.com = english
For SEO handling, URL page names are displayed in the requested language.
I want to be able to correctly rewrite the page name based on the domain AND page requested
I can do this :
RewriteRule ^english-page.php$ ./mypage.php?lang=en [L]
However, this does not allow me to only do the rewrite when the domain = en.example.com, and redirect to a 404 when the domain = www.example.com.
Not being very experienced with htaccess rules, can anyone help me solve this problem ?