>我正在尝试转向
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
新的重写规则
重写规则 ^affiliate/?$ index.php?route=affiliate/login [L] #Affiliate page
并在链接中提供 URL http://www.example.com/affiliate 以单击