[Zen Cart] Multi language sites Issue with forward slash

Magic SEO URLs for Zen Cart.
lacabessa
Posts: 4
Joined: Thu Sep 17, 2009 10:24 am

[Zen Cart] Multi language sites Issue with forward slash

Postby lacabessa » Thu May 27, 2010 5:45 am

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.

inveo
Inveo Support
Posts: 1280
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Multi language sites Issue with forward slash

Postby inveo » Thu May 27, 2010 12:48 pm

You can add such feature by changing following lines in .htaccess file:

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]