views:

26

answers:

1

I need to take request for

www.domain.com/123456/Catalog.aspx

and rewrite to

www.domain.com/Products/Catalog.aspx?ItemID=123456

where 123456 will always be numbers.

Any help is appreciated. Thanks.

A: 

You want to match this pattern:

^(\d+)/([^/]+)$

And then rewrite to this URL:

Products/{R:2}?ItemId={R:1}
Rohan Singh