• mihaim

    (@mihaim)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mihaim

    (@mihaim)

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

    Thread Starter mihaim

    (@mihaim)

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

    PaulMyatt

    (@paulmyatt)

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

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