Boost caching pages but all admin pages are no longer displayed

Created on 4 January 2017, almost 8 years ago
Updated 16 November 2023, about 1 year ago

I'm using Boost on:

Drupal 7.54
Shared hosting
Apache 2.2.31

I installed the Boost module and confirmed that clean urls are on and Drupal's caching is off. I then added the required text to the .htaccess file.

The caching is working but I'm no longer able to access any of the admin pages (e.g. Status Report, Modules,... ) all the pages that include in the URL admin/ or admin_menu/. The error message I get is:

******************************************************
******************************************************
The requested URL /admin/reports/status was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
******************************************************
******************************************************

I've used Boost before and I've not run into this problem. If I remove the .htaccess lines required by Boost, the admin pages work again but I'd like to be able to up the sites performance using Boost.

Any ideas?

thanks,

Rob

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States robinsf21

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡­πŸ‡ΊHungary danyg Budapest

    Today I run into a similar issue (although I have good experiences with Boost on other sites) and I had to uncomment the following lines in the .htaccess to make the admin functionality work

      # Caching for anonymous users
      # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
      #RewriteCond %{REQUEST_METHOD} !^(GET|HEAD|POST)$ [OR]
      #RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add|comment/reply))|(/(edit|user|user/(login|password|register))$) [OR]
      #RewriteCond %{HTTPS} on [OR]
      #RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
      #RewriteCond %{ENV:REDIRECT_STATUS} 200
      #RewriteRule .* - [S=2]
    

    And I updated my .htaccess to work for anonyms like this:

      # NORMAL
      RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
      RewriteCond %{HTTP_COOKIE} !DRUPAL_UID
      RewriteCond %{DOCUMENT_ROOT}/cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
      RewriteRule .* cache/%{ENV:boostpath}/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]
    

    I spent many hours with debugging, I know this is not an optimal solutions (I wasn't able to figure out what's wrong here), but this was my workaround.

Production build 0.71.5 2024