【问题标题】:Magento increasing URL rewrites constantlyMagento 不断增加 URL 重写
【发布时间】:2015-07-27 11:19:42
【问题描述】:

我安装了 Magento 1.7.0.2,发现 URL 重写最近有所增加。

例如: 请求路径:product-27x27-4804.html 目标路径:product-27x27-4805.html

所有新的重写都是自定义的,我注意到重新索引后计数会增加。

这些新的重写无效,基本上是我需要安全清理的垃圾,但同时让它们不再出现。

有什么想法吗?谢谢!

【问题讨论】:

    标签: .htaccess magento mod-rewrite url-rewriting magento-1.7


    【解决方案1】:

    这有两个部分:

    1. 清理大型 URL 重写表,这会减慢您的重新索引速度。

    请先备份!

    DELETE FROM core_url_rewrite WHERE category_id IS NOT NULL AND product_id IS NOT NULL;
    
    1. 修补 magento 以防止问题再次发生。请参阅下面的链接,但不要遵循建议您应该截断整个 core_url_rewrite 表的部分。这将删除所有自定义 URL 重写以及系统。

    https://magento.stackexchange.com/questions/17553/magento-core-url-rewrite-table-excessively-large

    【讨论】:

      猜你喜欢
      • 2019-01-08
      • 2013-03-26
      • 2013-01-07
      • 2011-04-17
      • 2014-01-03
      • 2017-09-07
      • 2014-05-20
      • 1970-01-01
      • 2012-07-30
      相关资源
      最近更新 更多