简体   繁体   English

Magento中的网址重写

[英]Url Rewrite in Magento

Im trying to add Url rewrites in my magento store , Enabling it from configuration is not working. 我试图在我的magento store添加Url重写,无法通过配置启用它。

  • How to setup Url Rewrites in Magento.? 如何在Magento中设置网址重写?
  • Do I need to manually change all the url keys of thousands of products in my store.? 我是否需要手动更改商店中成千上万种产品的所有url键?


Thanks for the help in advance. 我在这里先向您的帮助表示感谢。

Have a look on this extension for free provided by Inchoo - 看看Inchoo免费提供的此扩展程序-

https://github.com/ajzele/Inchoo_UrlRewriteImporter https://github.com/ajzele/Inchoo_UrlRewriteImporter

This extension will enable you to bulk import URL rewrite. 此扩展名使您可以批量导入URL重写。

No, after creating and product or category magento automatically creates url-key for the same. 否,创建后,产品或类别magento会自动为其创建url-key。 You can create it by indexing also. 您也可以通过建立索引来创建它。

And if there is any issue with url keys then use following steps 如果网址键有任何问题,请使用以下步骤

  • Go to database 转到数据库
  • Take backup of url_rewrite table 备份url_rewrite
  • truncate the table 截断表
  • Reindex from index management. 从索引管理重新索引。

Thanks 谢谢

It's hard to say exactly the answer for your question since it depends on the rule you are going to apply for your products's URLs. 很难确切地说出问题的答案,因为这取决于您要申请产品URL的规则。

Hope the following information can help: 希望以下信息能为您提供帮助:

  • Each Magento Product has a URL-key as an attribute of product. 每个Magento产品都有一个URL键作为产品的属性。 You can see it in Edit Product area. 您可以在“ 编辑产品”区域中看到它。
  • These keys are also indexed for routing purpose, and you can see all rewrite rules in URL Rewrite area. 这些键也被索引以用于路由目的,并且您可以在“ URL重写”区域中看到所有重写规则。

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

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