附加URL查询字符串

时间:2015-06-16 02:06:35

标签: regex apache mod-rewrite url-rewriting

我尝试重写以下网址

https://somedomain/index.php?aa=bb&foo=bar&debug=yes&trans_id= {整数}和ID = {整数}&安培; hfStatus = DONE

使用apache重写规则

RewriteRule ^(qq)-(receipt)\/([1-9]+)\/([1-9]+\/(DONE|PAYMENT_FAIL))$ /index.php?aa=bb&foo=bar&debug=yes&trans_id=$1&ID=$2&hfStatus=$3 [L]

但我期待这个网址 https://somedomain/qq-receipt/928957/928957/DONE

但结果网址变为 https://somedomain/qq-receipt/928957/928957/index.php?aa=bb&foo=bar

我在哪里错了?

0 个答案:

没有答案