Replace ? to & in .htaccess


Replace ? to & in .htaccess

我有网址http://example.com/index.php?roure=test/test支付系统调用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]