I want my search url should be like this mydomain.in/compare/samsung%20galaxy
和我的htaccess
就像这样
RewriteRule ^compare\/(.*)$ index.php?route=product/search&search=$1
然而,它无效,这是找不到页面。
答案 0 :(得分:0)
尝试在比较前的开头添加斜杠:
RewriteRule ^/compare\/(.*)$ index.php?route=product/search&search=$1