I have a url that parts of it are converted into variables through htaccess and other parts are variables sent in GET.
mydomain.com/page/5/string?v2=foo&v3=bar
.httaccess sends 5 as a variable, let's call it v1
RewriteRule ^([^/]*)/([0-9]+)/(.*)$ page.php?v1=$2 [L,QSA]
And the rest of the query string are received as GET.
?v2=foo&v3=bar
In this example, it is very straight forward, but in the actual system the variables parsed by .htaccess are more than one and are dynamic,
I need to find a way to only get the variables sent in GET ignoring the ones from .htaccess.
I tried $_SERVER['QUERY_STRING']
but that one returns also the variables parsed by .htaccess:
echo $_SERVER['QUERY_STRING'] //returns v1=5&v2=foo&v3=bar
I only want to get v2=foo&v3=bar