Spaces and Special Characters in Rewrite Rules

May 4, 2007 at 10:47 AM
Edited May 4, 2007 at 10:48 AM
Hi Dino,

In my working copy of IIRF (1.11c compiled from source, not a binary download) I get bizarre behaviour when redirecting URIs with spaces in them.

Neither \%20 nor \<space> nor <space> work.

I'm tring to redirect
"/downloads/myapp.exe" to "/downloads/myapp 1.2.exe"

Any clues?

May 11, 2007 at 8:36 PM
try version 1.2.12b

it includes a new feature to support %20 or other url-escaped sequences.

yours might look like this:

RewriteRule  ^/downloads/myapp.exe /downloads/myapp%%201.2.exe [L]

Note: the % char must be doubled!