简体   繁体   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我该怎么办?

Try : 尝试:

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