Does mod_rewrite cancel other GET vars???

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Does mod_rewrite cancel other GET vars???

Post 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 :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

As long as the rewritten string is at the end, it should be fine, most often.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Cool wicked...thanks...

I'll look into it tomrrow... :)

Cheers :)
Post Reply