|
In order to get my users redirected to the store view depending on their browsers language
I activated this Admin Panel → System → Configuration → Web → Url Options → Add store code to Urls → Yes
and added these lines to my .htaccess:
RewriteCond %{HTTP:Accept-Language} ^es [NC] RewriteRule ^$ /es/ [L,R=301] # Default Page RewriteRule ^$ /en/ [L,R=301]
When I switch language it doesn’t redirect properly if a category’s url is different in the other language.
For instance, if I am in url:
http://www.mysite.com/en/brands/brand1/receivers.html
and switch it to spanish
I get redirected to (404 Error):
http://www.mysite.com/marcas/marca1/receptores.html
When it should be:
http://www.mysite.com/es/marcas/marca1/receptores.html
What I’ve tried already:
Deactivating .htaccess rules won’t solve.
Looking into getCurrentUrl() ->Gets too deep into the code, can’t follow.
I would appreciate any help.
Someone else is having the same issue here.
Others having similar issues:
http://stackoverflow.com/questions/9096622/magento-multilanguage-double-change-in-language-resuts-in-404-or-how-to-chang
http://stackoverflow.com/questions/7322121/404-error-when-switching-between-stores-when-in-a-category-on-magento
EDIT #1:
Using Magento Comunity 1.6.2
EDIT #2:
I’ve just found there is a related bug here, but there’s no info on how to solve it..
|