[Zen Cart] Multi language sites Issue with forward slash
[Zen Cart] Multi language sites Issue with forward slash
Hello,
I hav ea multi language site using your module for Zen Cart. It works fine except in the following case.
The url http://www.mydomain.com/de/ works fine but http://www.mydomain.com/de (without the forward slash at the end) does not work. the server returns a File not found error. Could you please let me know how can I fix this issue as load of users will not necessrily include "/" at the end of the url to access the german version of our site.
I hav ea multi language site using your module for Zen Cart. It works fine except in the following case.
The url http://www.mydomain.com/de/ works fine but http://www.mydomain.com/de (without the forward slash at the end) does not work. the server returns a File not found error. Could you please let me know how can I fix this issue as load of users will not necessrily include "/" at the end of the url to access the german version of our site.
Re: [Zen Cart] Multi language sites Issue with forward slash
You can add such feature by changing following lines in .htaccess file:
to
Code: Select all
#index
RewriteRule ^([a-z]{2})/$ index.php?main_page=index&language=$1 [L,QSA]
to
Code: Select all
#index
RewriteRule ^([a-z]{2})(/){0,1}$ index.php?main_page=index&language=$1 [L,QSA]