2013-05-16 94 views
0

我正在开发FAQ自定义模块,其中列出了与特定产品相关的所有常见问题解答。如何重写Magento中的SEO网址?

以下是我的产品视图页面链接:

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

而以下是我自定义的常见问题网页链接,该产品:

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

现在,我的要求是创建上面的链接搜索引擎友好各自有产品像以下:

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

我怎样才能做到这一点?

回答

1

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

只要到URL重写的管理,并选择自定义URL重写型

提供在ID通路领域唯一的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使用您的目标路径。

,并保存你的URL重写

+0

非常感谢快速回复。 –