我想转身
http://www.example.com/index.php?route=affiliate/login
进入刚刚
http://www.example.com/affiliate
我知道我需要编辑 seo_url.php
文件并将 affiliate/login
放入mysql 数据库的 url_alias 表,但我似乎无法让它工作。
我尝试从 http://forum.opencart.com/viewtopic.php?f=112&t=115293&p=458532#p458532 下载 vq2-catalog_controller_common_seo_url.php
但它破坏了我的网站,因此不得不恢复备份的 seo_url.php
文件。
最佳答案
您可以通过创建新的重写规则将 htaccess 用于 url
新的重写规则
RewriteRule ^affiliate/?$ index.php?route=affiliate/login [L] #Affiliate page
并给出一个网址http://www.example.com/affiliate在链接中点击
关于php - 更改/index.php?route=affiliate/account to/affiliate OpenCart 2.0.3.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35920501/