Redirecting URL hack
-
A while ago my site got affected by the xmlrpc.php bug that lead to URLs like:
MYSITE/2008/08/21/POSTNAME/%&(%7B$%7Beval(base64_decode($_SERVER%5BHTTP_EXECCODE%5D))%7D%7D%7C.+)&%/
I’ve since upgraded to 2.9.2 and locked down file permissions significantly (as well as moved to an upgraded server and a few other things).
My issue is I can’t figure out how to redirect these broken URLs to working URLs (and the broken URLs are still indexed in Google). I’m trying to use mod_rewrite but I just get HTTP 400 errors (bad request) no matter what I do. My latest rewrite attempt was:
RewriteRule ^(20[0-9]{2}/[0-1][0-9]/[^/]+)/.*base64.*$ http://MYSITE/$1 [L,R=302,QSA]
I was hoping because the rule was a little less specific it would work, but no luck. All I need to do is strip the base 64 encoded junk at the end off. Anyone have any luck doing this?
Thanks!
Chris
The topic ‘Redirecting URL hack’ is closed to new replies.