sharingsunshine
asked on
Pattern Matching %20 in url
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.
funct%20in%20/var/www/html /modules/c dseolinks/ function.p a%20in%20/ var/www/ht ml/modules /cdseolink s/function .parse-url
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.
Thanks,
If it is working correctly then a url with function.php shouldn't be matched.
This is an example url in question.
funct%20in%20/var/www/html
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.
Thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I appreciate your help.
No problem :) Have a lovely weekend!
ASKER
You too!
ASKER