Page 1 of 1
Does mod_rewrite cancel other GET vars???
Posted: Sun Nov 05, 2006 9:50 pm
by alex.barylski
I am trying to get at my variables using GET but they aren't there after I use mod_rewrite...
Do I have to grab the URL from $_SERVER['REQUEST_URI'] or similar and manually parse the URL for other GET variables? No biggie, just curious...
Cheers

Posted: Sun Nov 05, 2006 10:14 pm
by feyd
As long as the rewritten string is at the end, it should be fine, most often.
Posted: Sun Nov 05, 2006 10:18 pm
by volka
http://httpd.apache.org/docs/2.0/mod/mo ... ewriterule
Additionally you can set special flags for Substitution by appending [flags] as the third argument to the RewriteRule directive. Flags is a comma-separated list of any of the following flags:
[...]
'qsappend|QSA' (query string append)
This flag forces the rewrite engine to append a query string part of the substitution string to the existing string, instead of replacing it. Use this when you want to add more data to the query string via a rewrite rule.
Posted: Sun Nov 05, 2006 11:13 pm
by alex.barylski
Cool wicked...thanks...
I'll look into it tomrrow...
Cheers
