Replace string

Topics: Developer Forum, Project Management Forum, User Forum
Nov 8, 2007 at 2:03 PM
Edited Nov 8, 2007 at 2:05 PM
Im using IIRF (v1.2.12c) for the of a client of ours where some url's can look like this:

This will be rewritten to:

The above url causes IIRF to crash and eventually the browser (tested in I.E7 and FF2)

I was wondering if it is possible to automatically replace certain character patterns, like %\d{2} with %%\d{2}, using a RewriteRule or maybe some other technique and\or setting in the .ini file.
I dont want to add another tool or third party software thingy, not if i can help it atleast.

Thanks in advance

Nov 21, 2007 at 10:04 AM
Check the README.
if you are using 1.2.12c, then you should be able to use the %% escape sequence.

Nov 21, 2007 at 10:05 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Nov 21, 2007 at 11:36 AM
The example in the readme handling this is where you know beforehand that there will be such a characters in the url.

What I need is something different.
I want to build a RewriteRule which will, for example, rewrite %20 to %%20.
But not in a way that i know beforehand where and when such characters will emerge.

I want a url like this: will be rewritten to
Using a rule that doesnt know there will be a %20 contained in the url.

Thats not what i see in the examples in the readme.

Thanks in advance