我尝试重写以下网址
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
我在哪里错了?