I want to do a mod_rewrite URL transformation. I want to direct
http://localhost/events?user=XXX&start=YYY&total=ZZZ
to
http://localhost/?operation=events&user=XXX&start=YYY&total=ZZZ
What I am using currently in my .htaccess is:
RewriteRule
^events\?userid=([0-9]+)&start=([0-9]+)&total=([0-9]+)$
?operation=events&user=$1&start=$2&total=$3
[L]
but it does not seem to be working.
I have also tried a simpler version:
RewriteRule ^events\?([a-zA-Z0-9&=]+)$ ?operation=events&$1 [L]
But it is also not working.
¿How can I "transfer" either the query params one by one OR else the whole query string to the end of the directed path?