Msg#: 4639825 posted 10:03 am on Jan 24, 2014 (gmt 0)
I've created a caching function which caches images and then uses urlencode() (PHP) on them and put them in 1 cache directory, and thus a cached image file name can look like this: 400%2F0%2Ffiles%2Fimage.jpg but my htaccess thinks the %2F are slashes and returns a 404 because of it.
What I'd like is for the htaccess to ignore escaped characters in the specific folder 'cache/' =P
I've exhausted all of my ideas, can anyone help? :)
Did you get the %%22? You have to do this because "%2" alone is interpreted as "the second capture from the most recently met condition" even if there never was a condition. And then you need the NE flag to keep it from turning into something with %25 in the middle representing a literal percent sign.
A final quirk is that when I did this experimentally, I ended up with a double-404: first the expected 404 because I was redirecting to nonexistent pages, and then a further error message that said it couldn't find the 404 page. I suspect this is because the [NE] flag remains in effect somehow, so the server is looking for "boilerplate%2Fthe404page.html". (The last bit is only a guess. I'd have to do some further experimenting in MAMP with a RewriteLog to make sure.)