You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Porter, Mark" <Ma...@LibertyMutual.com> on 2004/02/24 23:45:09 UTC

[users@httpd] query_string manipulation

I need to be able to remove one parameter in a query_string, and build a
redirect with the rest of the string.

For example:

http://myserver.dom.com/foo?stuff=1&badstuff=2

Any time the query_string contains &badstuff=2 (it will always appear at
the end of the query_string) I want to get rid of it, and redirect to
myself, with everything but &badstuff=2. /foo and stuff=1 are variables.

Is there a way to make substitutions to the query_string mid-stream?

Any help is appreciated!

MP

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org