簡體   English   中英

更換? 到.htaccess中

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM