Include special characters on Back references to RewriteRule

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 20 Mar 2014, 12:22

Include special characters on Back references to RewriteRule

20 Mar 2014, 12:41

Hi to all!

I've a problem with special characters in the value of the fields.

I've this rule:

Seorule Article\.asp\?Art=(.+) Article-$1/

ReWriteRule Article-(.+)/ TEST/Article.asp?Art=$1

If the value is a string without any special characters (such as $,%,&, # ecc) it's all good, but if
i've the field like this

...\?Art=wizard+of+oz

the browser return 404 error.

I've tried to insert

([^\s"'$&]*)

instead of

(.+)

but nothing change.

Where I fault?

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Include special characters on Back references to Rewrite

20 Mar 2014, 18:59

Hello,

This is not special character. The problem is that you're matching quesrystring wrong. Look at under "URLs with question mark don't work" in our FAQ http://www.helicontech.com/forum/10648-FAQ.html

Regards

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 0 guests