[英]Replace ? to & in .htaccess
我有網址http://example.com/index.php?roure=test/test
付款系統調用http://example.com/index.php?roure=test/test?var=val
我需要將其設置為http://example.com/index.php?roure=test/test&var=val
htaccess中的http://example.com/index.php?roure=test/test&var=val
我該怎么辦?
嘗試:
RewriteEngine On
RewriteCond %{THE_REQUEST} /index.php\?roure=test/test\?var=val [NC]
RewriteRule ^ /index.php\?roure=test/test&var=val [NC,L,R]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.