views:

79

answers:

0

Is it possible, using regex, to parse the query string and build a nice URL that can be translated back to the ugly URL for use on a legacy application? For example, let's say we are not certain what query string parameters are going to be part of a URL. Here is an example:

http://www.domain.com/thePage.aspx?Param1=1&Param2=23&Param7=22

We want to rewrite the URL as http://www.domain.com/Param1/1/Param2/23/Param7/22

At the same time we need the filter to allow the application to see it as the old URL to be processed correctly. Again, we don't know what combination of parameters may be used.

Can this be done only using the filter?