Forums

Apache server-info and server-stats 403 forbidden (4 posts)

  1. MihaiM
    Member
    Posted 4 years ago #

    I use pretty links generated using the WordPress Permalinks option from the menu, with a .htaccess file in the root folder. The problem is that when the file is in place I can't access server-info and server-stats from apache with a 403 forbidden error. When remove the file temporarily everything is back to normal instantly.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{HTTP_COOKIE} !^.*comment_author_.*$
    RewriteCond %{HTTP_COOKIE} !^.*wordpress.*$
    RewriteCond %{HTTP_COOKIE} !^.*wp-postpass_.*$
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]

    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{HTTP_COOKIE} !^.*comment_author_.*$
    RewriteCond %{HTTP_COOKIE} !^.*wordpress.*$
    RewriteCond %{HTTP_COOKIE} !^.*wp-postpass_.*$
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    </IfModule>
    # END WordPress

  2. MihaiM
    Member
    Posted 4 years ago #

    Nobody has this issue besides me? How do you access your Apache server-status with pretty links in place?

  3. MihaiM
    Member
    Posted 4 years ago #

    How do you access Apache server-status with pretty permalinks?

  4. PaulMyatt
    Member
    Posted 4 years ago #

    I added RewriteRule ^foldername/* - [L] to .htaccess before the WordPress block.

Topic Closed

This topic has been closed to new replies.

About this Topic