I enabled the boost module on one of my profiles few days ago. The clean urls are working but the boost doesn't show the cached pages at all.
The following is my current htaccess file
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
<FilesMatch "(\.(engine|inc|install|module|sh|.*sql|theme|tpl(\.php)?|xtmpl)|code-style\.pl|Entries.*|Repository|Root)$">
Order deny,allow
Deny from all
</FilesMatch>
# Set some options.
Options -Indexes
Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Reduce the time dynamically generated pages are cache-able.
<IfModule mod_expires.c>
ExpiresByType text/html A1
</IfModule>
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
RewriteBase /
# Rewrite old-style URLs of the form 'node.php?id=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]
# Rewrite rules for static page caching provided by the Boost module
# BOOST START
<IfModule mod_mime.c>
AddCharset utf-8 .html
</IfModule>
RewriteCond %{HTTP_HOST} ^wordsvalley\.org$ [NC]
RewriteRule ^(.*)$ http://www.wordsvalley.org/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_URI} !^/cache
RewriteCond %{REQUEST_URI} !^/user/login
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{HTTP_COOKIE} !DRUPAL_UID
RewriteCond %{REQUEST_METHOD} ^GET$
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{DOCUMENT_ROOT}/cache/www.wordsvalley.org/0/%{REQUEST_URI} -d
RewriteCond %{DOCUMENT_ROOT}/cache/www.wordsvalley.org/0/%{REQUEST_URI}/index.html -f
RewriteRule ^(.*)$ cache/www.wordsvalley.org/0/$1/index.html [L]
RewriteCond %{REQUEST_URI} !^/cache
RewriteCond %{REQUEST_URI} !^/user/login
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{HTTP_COOKIE} !DRUPAL_UID
RewriteCond %{REQUEST_METHOD} ^GET$
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{DOCUMENT_ROOT}/cache/www.wordsvalley.org/0/%{REQUEST_URI}.html -f
RewriteRule ^(.*)$ cache/www.wordsvalley.org/0/$1.html [L]
# BOOST END
# Rewrite current-style URLs of the form 'index.php?q=x'.
</IfModule>I have thoroughly read http://drupal.org/node/303225 , http://drupal.org/node/576526 and other nodes concerning the issue.
I have no clue why the above htaccess instructions aren't working. Currently the htaccess shows pages from mysql. One of the previous settings I tried threw a 500 internal server error page but at the moment it just displays the normal non-boost-cached page!
I would really appreciate if anyone could guide me in the right direction. It would be awesome if someone has already dealt with the problem.
Comments
5.x
Appears you are running with 5.x-1.0, unfortunately there are a lot of issues with the 5.x version of boost. If you can upgrade to 6.x you will find that Boost works a lot better.
boost and pages
On one of my drupal installations with boost I noticed that boost only caches the node/taxonomy's main page e.g. boost is at the moment not caching page 2, 3 (or beyond) of taxonomy term 1. It currently only caches page 1 (the default page) which doesn't have any suffixes concatenated to it in the url.
Is it suppose to work like this and if it is then are there any methods we can use to get these other pages for a single node/term,etc cached as well ?
Any answers are welcome.
Ali Hammad Raza
WordsValley.org
url variable
is boost set to cache url variables (default is yes)?
honestly dear mikey, after
honestly dear mikey, after reading your reply I have double checked to see if boost was caching other pages of a single taxonomy term . I can so far not see the most desired boost injection statement at the end of the page after the ending html tag for the pages mentioned above.
Can you kindly shed more light on the subject ? Have I done something wrong which is preventing these pages from being cached/displayed or could it be a wrong setting in htaccess/vice versa?
*I have not altered the code of boost from within the module files.
Ali Hammad Raza
WordsValley.org
Debug
Turn on the boost status block and set the verbose level to 9. For some reason boost doesn't want to cache those pages; hopefully this will explain the reason why. Oh and this only applies if your using the 6.x version of boost. If your using 5.x you can apply some patches but your on your own for the most part.
http://drupal.org/project/issues/boost?order=comment_count&sort=desc&sta...