• Using Apache redirects, I’ve setup a redirection for “/products/*.html” (where * means anything) using regex “^products/.*\.html$”. However, Redirection is rewriting this as “^products/.*\\.html$” making it invalid. This is, it is escaping the escape for the literal dot in “.html”.

    Manually correcting in the .htaccess file and it works fine, but this has to be done any time Apache rewrites are modified.

    Ideally the plugin shouldn’t modify supplied regex, but as a workaround is there any way to stop it doing this short of changing the plugin code?

    http://wordpress.org/extend/plugins/redirection/

  • The topic ‘Incorrect handling of regex’ is closed to new replies.