Pattern Matching %20 in url
Posted on 2014-01-31
I have several urls that have %20''s in the actual url. I want a regex that will point it to the correct page. I can get it to work with the first 3 letters but don't know how to add in the %20. I have tried \W and \s but to no avail.
If it is working correctly then a url with function.php shouldn't be matched.
This is an example url in question.
Here is what I have.
RedirectMatch 301 ^/fun\s(.+?)$ /help.php
By the way, the ideal thing I know already but I don't have any support on that program to know how to fix the problem. So that is why I am resorting to a pattern match. Rather than getting the program to quit putting the erroneous characters into the urls when it is spidered.