Rewrite RegEx not capturing querystring

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 3
Joined: 21 Jan 2015, 15:50

Rewrite RegEx not capturing querystring

21 Jan 2015, 15:57

I am trying to create a Rewrite condition using the Test Utility, but it is not capturing the parameter after the question mark.

RegEx:
^/shop/cart-sale.htm/?\?(.*)$

Test String:
/shop/cart-sale.htm?id=25MSNVEN

Match Results:
$0: /shop/carhartt-sale.htm
$1:

Format String:
/tech/cart.htm\?$1


Could someone please lend me a hand trying to understand what I am doing incorrectly?

Thank you very much.

Best regards.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Rewrite RegEx not capturing querystring

22 Jan 2015, 14:49

Hello,

RegEx testing tool is not comprehensive and it can't capture query string by design.
It's for basic rules only...

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 6 guests