• Resolved mlipenk

    (@mlipenk)


    Help me understand why an entire WordPress site is taken down by Wordfence if there happens to be either a Redirect 301 or RedirectMatch 301 within the default WordPress htaccess code?

    For example, Redirect 301 /olddoc.pdf https://yoursite.com/newdoc.pdf works perfectly fine until the Wordfence plugin is fully activated. When Wordfence adds its code to the htaccess file the ENTIRE site breaks… wp-admin and all.

    If I didn’t have access to the backend via command line and FTP access to change permissions and fix the htaccess file, this could be very troublesome.

    As soon as I remove the Wordfence code, then the site will come back up.

    Apparently WAF and Redirect 301 cannot co-exist. Why?

Viewing 1 replies (of 1 total)
  • Hi @mlipenk,

    I’m sorry you’re experiencing this issue.

    Can you see any errors in the PHP logs when both the redirect and the Wordfence optimization code are present in the “.htaccess” file?

Viewing 1 replies (of 1 total)
  • The topic ‘Wordfence Breaks site if Redirect 301 in .htaccess’ is closed to new replies.