How to rewrite % signs in URLs

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: How to rewrite % signs in URLs

02 Oct 2013, 17:21

It seemed, at first, NE should work... You can find a list of flags here - http://www.helicontech.com/isapi_rewrit ... teRule.htm. Another one that we may wanna try is NU.

User avatar
Posts: 28
Joined: 29 Aug 2012, 06:15

Re: How to rewrite % signs in URLs

03 Oct 2013, 06:02

Tried NU and still the same URL comes back :(

User avatar
Posts: 28
Joined: 29 Aug 2012, 06:15

Re: How to rewrite % signs in URLs

04 Oct 2013, 09:03

:(

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

Re: How to rewrite % signs in URLs

04 Oct 2013, 10:41

I know... I've asked my colleagues. They will reply if come up with a better solution.

User avatar
Posts: 28
Joined: 29 Aug 2012, 06:15

Re: How to rewrite % signs in URLs

04 Oct 2013, 16:48

Many thanks Andrew, really appreciate your help in what is a very complex subject.

Heaven forbid, could it be a bug in the rewriter?

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

Re: How to rewrite % signs in URLs

07 Oct 2013, 07:40

Hello,

Please try to use the following rules:

RewriteCond %{QUERY_STRING} ^(.+?)\%(?!25)(.*)$
RewriteRule ^(.*) $1\?%1\%25%2 [NE,LP,R=301,L]

User avatar
Posts: 28
Joined: 29 Aug 2012, 06:15

Re: How to rewrite % signs in URLs

08 Oct 2013, 04:01

Anton that works! Impressive. There should be a compendium of all these rewrites!

Thanks to all again.

Previous

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 11 guests