|Posted: 01 September 2011 at 8:41am
I have the following rule:
RewriteRule ^/.*/products/(.*)\?*(.*)$ /products.asp?ID=$1&$2
Which should be matching the following two types of URLs:
/some-description/products/100 --> /products.asp?ID=100&
/some-description/products/100?X=Y --> /products.asp?ID=100&X=Y
It does match the top example (without the ?), but the second example always matches as:
as it is setting the first matching group ($1) to "100?X=Y" and not matching the ?.
I've tried lazy match as well with no change. I would be very appreciative if someone could point me in the right direction.