简体   繁体   English

Magento 1.9.1.1商店页面上的404页

[英]Magento 1.9.1.1 404 pages on store view

I've got this Magento setup that's supposed to be working as a multilanguage store. 我有这个Magento设置,应该可以作为多语言商店使用。 Basically I've got 3 different languages and let's say, for example, that I got the 'Terms and Conditions' page. 基本上,我有3种不同的语言,例如,我有“条款和条件”页面。 Now, on one of the languages the url is '/termeni-si-conditii' and on the second language the url looks like '/terms-and-conditions'. 现在,在一种语言上,URL是“ / termeni-si-conditii”,在第二种语言上,URL看起来像是“ / terms-and-conditions”。 If someone lands from a search engine on '/terms-and-conditions' the default language is the first one and this particular page shows as a 404 one. 如果有人使用“ / terms-and-conditions”从搜索引擎着陆,则默认语言为第一语言,并且该特定页面显示为404。 However if I change the language the same url shows the actual content on this page. 但是,如果我更改语言,则相同的URL会在此页面上显示实际内容。 No more 404's. 没有更多的404。

Is there a way to set the appropriate the language based on the landing url? 有没有一种方法可以根据到达网址设置适当的语言? So if they land on '/terms-and-conditions' show the content here, rather than showing the 404. 因此,如果它们落在“ /条款和条件”上,则在此处显示内容,而不是显示404。

Thanks! 谢谢!

The only way to prevent this is to make a URL Rewrite redirect in 防止这种情况的唯一方法是使URL重写重定向到

Catalog >> URL Rewrite management

There you can add 301 redirects per specific store view. 您可以在此处为每个特定的商店视图添加301重定向。 So for Italian store view add redirect from /terms-and-conditions to /termeni-si-conditioni . 因此,对于意大利商店视图,请添加从/terms-and-conditions/termeni-si-conditioni重定向。 Follow the same logic for English store view. 遵循英语商店视图的相同逻辑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM