[Zen Cart] Multi language sites Issue with forward slash

Technical difficulties? Ask for help here.

[Zen Cart] Multi language sites Issue with forward slash

Postby lacabessa » Thu May 27, 2010 4: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.
lacabessa
 
Posts: 4
Joined: Thu Sep 17, 2009 9:24 am

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

Postby ~J~ » Thu May 27, 2010 11:48 am

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]
Magic SEO URLs are now available for
osCommerce, CRE Loaded, Zen Cart, PrestaShop, OpenCart, CubeCart, phpBB and phpBB3!
~J~
InveoStore.com Founder
 
Posts: 1056
Joined: Sat Feb 02, 2008 11:07 am
Location: Prague, Central Europe


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest

cron