i'm struggling with a modrewrite/htaccess problem (using php).
i'm running a multi-language web which has urls like www.mydomain.com/en/index.php
"en
" will translate as &lang=en
now i'm looking for a way to always force english as default language for ANY url- eg. if a user tries accessing an url like www.mydomain.com/dashboard.php
, it should automatically translate to www.mydomain.com/en/dashboard.php
any ideas how to solve this? thanks
Assuming you have a list of languages your site supports:
This will rewrite the url if it doesn't start with either
/en/
,/fr/
,/es/
or/de/
.