如何重定向 magento 中的 URL?

how to redirect the URL in magento?

如果我点击类别或子类别,如何在 Magento 中重定向 URL 它应该显示我创建的页面,因为响应式设计我正在这样做

我为页面创建了 URL,类别和子类别 URL 都等于页面 URL。

为此,您所要做的就是添加 URL 重写。例如,如果您的类别 ID 是 10 并且 cms 页面 link 是 "cmspage.html",那么在 magento 后端管理中转到

catalog->URLrewrite Management and search for id 10 in ID path column copy the "Target Path" field data now write a custom url rewrite for this "Target Path"

go to Catalog->URL rewrite Management, Click Add URL rewrite button.  choose “Custom” from “Create URL Rewrite” drop-down list. add the details like belwo

Request Path — It must be the Target path which  copied before (catalog/category/view/id/10) in above.

Target Path — It should be the CMS page URL

就是这样,您将拥有 link 带有自定义 cms 页面的类别