Suppose I want to rewrite from
http://example.com/test?data=abcxyz
to
http://example.com/index.php?module=test&data=abcxyz
I tried
RewriteRule ^test?(.*)$ index.php?module=test&$1 [L]
But it doesn't work, the QUERY_STRING becomes module=test&s. (The whole string data=abcxyz become s).
How can I accomplish this task?
Many thanks in advance!