【问题标题】:How to rewrite SEO URL in Magento?如何在 Magento 中重写 SEO URL?
【发布时间】:2013-05-10 21:49:11
【问题描述】:

我正在开发常见问题解答自定义模块,其中列出了与特定产品相关的所有常见问题解答。

以下是我的产品查看页面链接:

http://mydomain.com/magentoassignments/index.php/watches/titan-suprimo-501.html

以下是此产品的自定义常见问题页面链接:

http://mydomain.com/magentoassignments/index.php/faqmodule/product/list/id/1/category/3/

现在,我的要求是在上面创建对 SEO 友好的链接,分别与以下产品:

http://mydomain.com/magentoassignments/index.php/watches/titan-suprimo-501/faqmodule.html 要么 http://mydomain.com/magentoassignments/index.php/watches/titan-suprimo-501/faq.html

我怎样才能做到这一点?

【问题讨论】:

    标签: magento url-rewriting seo


    【解决方案1】:

    首先,您必须在管理员中创建自定义重写。

    去url重写管理,选择自定义url重写类型

    在 id path 字段中给出唯一的 id 路径

    在请求路径中给出这个http://mydomain.com/magentoassignments/index.php/watches/titan-suprimo-501/faq.html 这是来自前端的请求路径

    在目标路径中给出这个http://mydomain.com/magentoassignments/index.php/faqmodule/product/list/id/1/category/3/ magento 在内部使用您的目标路径。

    并保存您的网址重写

    【讨论】:

    • 非常感谢您的快速回复。
    猜你喜欢
    • 2012-12-03
    • 2013-04-18
    • 2012-07-17
    • 1970-01-01
    • 2011-11-27
    • 1970-01-01
    • 2015-05-28
    • 1970-01-01
    • 2011-06-17
    相关资源
    最近更新 更多