• Resolved smcooper

    (@smcooper)


    Hi-

    When the WordFence .htaccess file is in place, I cannot get to my site’s Apache server-status or server-info page. Instead, I get an 404 Not Found. If I temporarily move the .htaccess file out of the way, those pages work again.

    How can I access those pages while still having WordFence active?

    Thanks,

    Steve

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Steve,
    I can’t reproduce this issue using the default Apache Server Status module while having the Wordfence Firewall optimized at the same time, could you please try removing the Wordfence lines in “.htaccess” file temporarily and re-check this issue?
    Any line of code we add in “.htaccess” file is wrapped between those lines:

    # Wordfence WAF
    
    # END Wordfence WAF
    

    Let me know how it goes,
    Thanks.

    Thread Starter smcooper

    (@smcooper)

    Hi,

    Thanks for your response.

    It turns out that there are two blocks of code in the .htaccess: the Wordfence WAF that you refer to, and the following:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    I could swear that I had no .htaccess file at all before installing Wordfence, but I may be wrong. In any case, commenting out those lines fixed my problem. I’m not sure where those lines came from or even what they are trying to do.

    In any case, my problem is now solved.

    Thanks again for your help,

    Steve

    This code snippet you mentioned is the default WordPress snippet and it was added to provide support for pretty permalinks, you won’t be able to set custom permalinks in WordPress without this snippet.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘server-status and server-info’ is closed to new replies.