WP Super Cache htaccess question
-
Hello
I have installed the most current version of wp super cache on a test blog at cms.centrihost.com
The plugin seems to be working, however pages are only being cached using the wp-cache portion of the module, no pages are getting processed by super cache. I have done a lot of troubleshooting and can only assume it may be an error in the .htaccess file regarding the mod rewrite rules. I have included the contents of the .htaccess file I am using. Can any one confirm if this is correct or provide a working version of the complete .htaccess file needed for this module to work? Any assistance would be greatly appreciated.
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /cmsblog/
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/cmsblog/wp-content/cache/supercache/%{HTTP_HOST}/cmsblog/$1/index.html.gz -f
RewriteRule ^(.*) /cmsblog/wp-content/cache/supercache/%{HTTP_HOST}/cmsblog/$1/index.html.gz [L]RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{DOCUMENT_ROOT}/cmsblog/wp-content/cache/supercache/%{HTTP_HOST}/cmsblog/$1/index.html -f
RewriteRule ^(.*) /cmsblog/wp-content/cache/supercache/%{HTTP_HOST}/cmsblog/$1/index.html [L]
</IfModule>
# END WPSuperCache
# BEGIN WordPress
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPressThank you
Kurt Stauffacher
CentriHost.com
- The topic ‘WP Super Cache htaccess question’ is closed to new replies.