Magento 中的 CMS 页面 URL
我正在尝试找出 Magento 的路由,因为我需要它来进行 mod_rewrite。我在 Magento 本身中制作了几个 CMS 页面;现在我想知道如何传递 $_GET 变量。
例如:
http://www.magento.nl/catpage?catid=3
这个 URL 在 Magento 中应该是什么样的?我尝试过:
http://www.magento.nl/cms/catpage/index/index/catid/3
不幸的是这不起作用。有人可以帮我吗,这是我正在寻找的缺失链接。 :-)
提前致谢。
I am trying to figure out Magento's routing because I need it for mod_rewrite. I have made several CMS pages in Magento itself; now I am wondering how to pass on $_GET variables.
For example:
http://www.magento.nl/catpage?catid=3
How should this URL look the Magento way? I tried:
http://www.magento.nl/cms/catpage/index/index/catid/3
Unfortunately this isn't working. Could someone help me out here, it's the missing link I am looking for. :-)
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要更改 mod_rewrite 或自己了解路由器/控制器/操作过程。 Magento 已经具有重写能力,并且 CMS 页面有一个“url-key”,用于创建公共 URL 值。您还可以通过“目录 > URL 重写管理”进行更精细的控制。
You shouldn't need to change mod_rewrite or understand the router/controller/action process yourself. Magento already has rewriting abilities and CMS pages have an "url-key" which is used to make the public URL value. You have finer control via the "Catalog > URL Rewrite Management" too.