Problem with mod rewrite for multi-lingual site
- by Chris
Hi everyone
Currently developing a multi-lingual website, Users can access the front page using url with format below:
http://mydomain.com/en/
http://mydomain.com/fr/
Problem is here. URL without last "/" (http://mydomain.com/fr) caused page not found problem
Here is the rule
RewriteRule ^/?([^./]+)/(.*)$ $2?lang=$1 [L,QSA]
Can anybody help ?
Thanks in advance