我想使用opencart更改产品/搜索页面网址
My URL : index.php?route=product/search&search=test_name
我想要像search_product/test_name
HTTACCESS文件代码:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /myshop
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
RewriteRule ^search_product/([A-Za-z0-9-]+)/?$ index.php?route=product/search&search=$1 [NC,L] #search page
</IfModule>