• Resolved cantoute

    (@cantoute)


    Hi,

    Thanks for the hard work, this plugin is a saver ??

    Here I believe I’ve spotted a small bug.

    So when using regex via apache module, selecting 404, it produces

    RewriteRule ^please-return-404.*$ / [F,L]

    I believe it should produce

    RewriteRule ^please-return-404.*$ – [R=404,L]

    Probably safer tu use a – than / (unless you want passthrough)

    https://httpd.apache.org/docs/2.4/en/rewrite/flags.html#flag_pt

    Note that the PT flag is implied in per-directory contexts such as <Directory> sections or in .htaccess files. The only way to circumvent that is to rewrite to -.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Apache module selecting 404 sets [F]orbidden (using regex)’ is closed to new replies.