plus sign in url causes no match

Jan 9, 2009 at 9:04 PM
Hello, I have a fairly simple rule:

RewriteRule ^/cfd/(.*)/([^/]+.pdb)$  /TitleDownload/LSCFD.dll?oid=$1

and it works sometimes, but sometimes it appears to fail matching the given URL - specifically a case that happens to have two plus signs embedded in it (and, btw, it also fails if you remove one of the two plus signs ... but if you remove both, it works). 

Any ideas why that might be?  Can the rule be changed to accomodate this?

Jan 21, 2009 at 8:20 PM
The rule will probably need to be modified. I haven't tested it or even examined it to see if a + causes a mis-match, but I would suggest you download a regular expression tester application. They SO helpful and time saving when writng regular expressions and testing your URL's on it.

Be sure that when you get one, it usese PCRE regular expressions. The best one I've seen is RegexBuddy