Php 使用.htaccess-opencart项目重写URL
我正在寻找以下URL重写规则的解决方案 网址:http://localhost/mysite/abc/index.php?route=product/category&path=1 这必须重写为Php 使用.htaccess-opencart项目重写URL,php,.htaccess,mod-rewrite,opencart,Php,.htaccess,Mod Rewrite,Opencart,我正在寻找以下URL重写规则的解决方案 网址:http://localhost/mysite/abc/index.php?route=product/category&path=1 这必须重写为 http://localhost/mysite/index.php?route=product/category&path=1&store=abc 我试过以下几种方法 RewriteRule ^([^/]*)/([^/]*)$ $2&store=$1 [L] 但它最终出现在/
http://localhost/mysite/index.php?route=product/category&path=1&store=abc
我试过以下几种方法
RewriteRule ^([^/]*)/([^/]*)$ $2&store=$1 [L]
但它最终出现在/mysite/index.php&store=abc中
无法获取完整的$2检查有关QSA的mod_重写文档flag@zerkms是的,我也试过。但是再一次得到/mysite/index.php&store=abcs你到底是怎么尝试的。@zerkms我对htacees非常陌生。。这就是我试过的。重写规则^.+/.+$$2[QSA,L],你怎么知道它最终会变成/mysite/index.php&store=abc?