最近我一直在研究 Opencart 作为简单电子商务网站的解决方案。我非常喜欢它,但我似乎无法正确重定向。
我正在使用 lighttpd 作为 Web 服务器,并且我注意到 Opencart 为 SEO URL 提供了 Apache .htaccess 配置,但对于 lighttpd 却没有运气。
Opencart 使用这样形成的 URL:
登录页面:
http://[domain]/index.php?route=account/login
产品页面:
http://[domain]/index.php?route=product/product&product_id=51
理想情况下,我想要这样的东西:
登录页面:
http://[domain]/index.php/account/login
产品页面:
http://[domain]/index.php/product/51/[product-name]
当然,任何指向正确方向的指针都会受到高度赞赏。即使是关于在 Lighty 中哪里可以找到处理重写的正确方法的简短说明也会有所帮助!
提前致谢。