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

Comments

robinsf21 created an issue. See original summary.

apaderno’s picture

Title: Boost caching pages but all admin pages no longer display (404 error) » Boost caching pages but all admin pages are no longer displayed
Issue tags: -boost, -404 (duplicate tag), -admin interface +404
danyg’s picture

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.