在magento上的类别中时,在商店之间切换时出现404错误 [英] 404 error when switching between stores when in a category on magento

查看:140
本文介绍了在magento上的类别中时,在商店之间切换时出现404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的magento网站有5个商店视图.当我们使用英文的产品并选择法语时,它会正确重定向并以法语显示产品.但是当涉及到类别时,它根本不起作用.

My magento website has 5 store views. When we are in a product in English and select French, it redirects correctly and show the product in French. But when it comes to categories, it doesn't work at all.

我属于URL为 http://myweb.com/en/body-care的类别,如果我更改为西班牙文视图,它不会重定向到URL"../cuidado-del-cuerpo",而只是转到

I'm on a category with the url http://myweb.com/en/body-care, if I change to the Spanish view, it doesn't redirect to the url "../cuidado-del-cuerpo" it just goes to to http://myweb.com/es/body-care and shows a 404 error (it changes the 'en' for 'es', but doesn't change the last part of the url).

"URL重写管理"部分中未定义该重写.我有5个类别和5个商店视图,因此手动创建重写规则不是一个好主意.

The rewrite is not defined on the URL Rewrite Management section. I have 5 categories and 5 store views, so it's not a good idea to create the rewrites rules manually.

我该如何解决?为什么在创建/修改每个类别的url时未编写重写规则?

How can I solve this? Why the rewrite rules were not written when we created/modified the url of each category?

推荐答案

1)您可以检查urlkey在商店视图级别是否可定义,还是在网站级别设置?这样,您只能为EN和ES创建1个网址密钥.您需要使其处于商店视图级别,请定义两个单独的值.

1) Can you check if the urlkey is definable on store view level, or if it is set to website level? That way, you can only create 1 url key for EN and ES. You need it to be at store view level, do define 2 separate values.

2)您的错误日志中有内容吗? (并且您的错误日志是否已打开?)通常,将为每个商店视图自动创建URL重写.如果没有,您可能需要手动重新编制索引.

2) Is there something in your error log? (and is your error log turned on?) Normally url rewrites are created automatically for each store view. If not, you may need to manually reindex.

很难提供进一步的建议,因为问题可能出在任何地方(模块冲突或代码错误?)

It's hard to give further advice, since the problem could be anywhere (conflicting module? bad code?)

这篇关于在magento上的类别中时,在商店之间切换时出现404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆