IIS URL Rewrite Module Query String Parameters

Posted by binarycoder on Server Fault See other posts from Server Fault or by binarycoder
Published on 2012-03-24T13:37:43Z Indexed on 2012/03/31 17:33 UTC
Read the original article Hit count: 339

Filed under:
|

Is it possible to use URL Rewrite to provide more complex query string functionality than the "Append query string" checkbox that it has? Specifically, is it possible to specify the keys for certain query string parameters and have it only append those name value pairs.

For example, for the input:

http://www.example.org/test?alpha=1&beta=2&gamma=3

and the list of query string parameter keys: beta gamma

it should output: http://www.example.org/redirect?beta=2&gamma=3

(Note that the query string parameters in the input appear in arbitrary order.)

© Server Fault or respective owner

Related posts about url-rewriting

Related posts about querystring