Can’t activate Extended Protection as htaccess not set recursively on my server
-
My website lives on a LiteSpeed server, WordPress is installed in a subdirectory and the Wordfence ‘Extended Protection’ was activated. All was working as expected.
Last year my website was automatically migrated to VentraIP (from their sub-company, Zuver). My website and Wordfence continued to work as expected with ‘Extended Protection’ activated.
I’ve just upgraded to WP 6.1, all plugins (including Wordfence) and changed PHP to 8.0.25. Wordfence now shows that I only have ‘Basic WordPress Protection’.
I’ve tried going through the process of activating the ‘Extended Protection’ again (and following your documentation regarding LiteSpeed). I get a success message, but Diagnostics shows ‘WAF auto prepend active = No’. And the “Click to view your system’s configuration in a new window” shows that ‘auto_prepend_file = No value’.
However, if I place an htaccess file in the WordPress subdirectory then ‘auto_prepend_file’ has the correct file. But ‘WAF auto prepend active’ still has ‘No’.
I’ve worked out that htaccess is not applying to any subdirectories. After talking to my Host, it turns out that htaccess isn’t applied recursively on their environment (and php.ini and user.ini aren’t supported either). I.e. auto_prepend_file works on the top-level directory but not subdirectories. (I don’t know why changing to PHP 8 would stop recursive htaccess…?)
VentraIP claims they’ll continue looking at other ways of recursive setting ‘auto_prepend_file’. But for now, they said I need to include an htaccess file in every directory that needs the Wordfence WAF file prepended.
- Do you have a list of WordPress directories for which I need to include an htaccess file?
- Will adding htaccess to all directories even fix the issue?
- The topic ‘Can’t activate Extended Protection as htaccess not set recursively on my server’ is closed to new replies.