Incorrect handling of regex (1 post)

  1. regisit
    Posted 2 years 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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Redirection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic