Thread Starter
cindr
(@cindr)
My .htaccess looks like this
Options Indexes FollowSymLinks MultiViews
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{QUERY_STRING} !.*attachment_id=.*
RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|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 %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{QUERY_STRING} !.*attachment_id=.*
RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|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>
# BEGIN WordPress
# BEGIN WordPress RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
# END WordPress
# END WPSuperCache
# BEGIN WordPress
# END WordPress
DirectoryIndex tp_in.php index.shtml index.html index.php index.cgi
Delete the supercache rules from the .htaccess and delete wp-content/advanced-cache.php and visit the admin page to regenerate both.
Thread Starter
cindr
(@cindr)
Thanks donncha
But don’t work for still the same problem.
Read through the readme.txt, lots of good tips there.
Thread Starter
cindr
(@cindr)
@donncha
I did that i try everything but the cache don,t work back.
Somting wrong with the server ma by. The Apache??
You should probably try uninstalling the plugin and installing it again.
Thread Starter
cindr
(@cindr)
@donncha
Ok i have uninstalling the plugin. And re install the plug. And still the same problem
Thread Starter
cindr
(@cindr)
I have solved the problem: these strings are regular expressions. So, the dot symbol matches any char!
So, the default values (like “wp-.*.php”) are incorrect: it should be “wp-.*\.php”. This was the first bug in WP-Super-Cache.
The second bug was in the source code that prevented from entering backslashes in the list.