WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
Incorrect handling of regex (1 post)

  1. regisit
    Member
    Posted 10 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic