【发布时间】:2012-11-26 11:55:18
【问题描述】:
我正在使用 magento 1.7。像http://example.com/men/silver-cufflinks 这样的magento 产品网址然后我想从网址中删除men。我在 url.php 中注释了以下代码
// if (null === $parentPath) {
// $parentPath = $this->getResource()->getCategoryParentPath($category);
// }
// elseif ($parentPath == '/') {
$parentPath = '';
// }
然后清空 core_url_rewrite 表,然后清除缓存并重新索引所有项目,现在我有像 http://example.com/catalog/category/view/s/women/id/181/ 这样的 URL。我想恢复以前的链接,请告诉我该怎么做。我也再次尝试取消我已评论的代码并再次清除表格并清除缓存,然后重新索引所有内容,但我仍然无法修复
【问题讨论】:
标签: magento url-rewriting