Recursive Conversion

Mar 31, 2009 at 7:41 AM
Hi
I am using the IIRF Rewriter  and I have a Query as below

RewriteRule ^/BZ/([^/]+)/([^/]+)/([^/]+)/Default.aspx /BZ/ContainerURLRewrite.aspx?module=$1&$2=$3

which checks if the URL contains BZ and it has other parameters and ends with Default.aspx then Generate a URL with BZ/Container with the paramater as Query string. This Works fine

When I pass the URL

http://localhost/BZ/MyModule/tabid/112/Default.aspx

It Generates the URL as

http://localhost/BZ/ContainerURLRewrite.aspx?module=MyModule&tabid=112

Which is Correct. But the Number of Parameters between BZ and Default.aspx will be N. How to write a Query so that it will be applied for all the parameters. How to write a recursive Query.

I have also looked the Thread http://iirf.codeplex.com/Wiki/View.aspx?title=Map%20URL%20segments%20to%20Query%20params&referringTitle=Examples 
But not able to modify for my Need.

Please help me.

Thanks
Anandraj.A.