• Resolved nicola1013

    (@nicola1013)


    Hello. I recently had to recreate my htaccess file after running Wordfence for a few years–and all the customization from the plugin is gone. How do I get the plugin to write to the new htaccess file? Do I have to uninstall and delete Wordfence, then reinstall it? – Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @nicola1013 and thanks for reaching out to us!

    Typically the only thing added to the htaccess file is:

    # Wordfence WAF
    <IfModule mod_php7.c>
    	php_value auto_prepend_file '/wordfence-waf.php'
    </IfModule>
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>
    </Files>
    # END Wordfence WAF

    Depending on your setup, there might be some tweaks, such as if you are hosted on a Litespeed server. Make sure the auto_prepend_file is pointed to your wordfence-waf.php location.

    Hope this helps!

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Question about HTACCESS file’ is closed to new replies.