Few days back We talked about WP-Super cache plugin. Wp-Super cache is must have plugin for any wordpress blog on Shared hosting. WP-Super cache plugin is very useful to face the Digg effect.
Digg effect is when any of your blog post hits the Front page of Digg, you will get huge traffic spike. A Normal Shared hosting is not capable of facing such huge traffic, to make them capable of face such situation, you need to install and configure wp”Super cache wordpress plugin. To know more about Digg, you may refer to my previous post on :
How to configure Wp “Super cache wordpress plugin?
Just installing and activating Super cache plugin, doesn’t mean that it is enough to take care of huge traffic. When you access super cache under settings you will see something like this >
So to enable the Wp “Super cache plugin
You need to add this line to your .htaccess file
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
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}/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} !.*=.*
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>
# END WPSuperCache
You also need to check, /home/origina5/public_html/yourdomain.com/wp-content/cache/.htaccess
has the following entry, if not manually edit it :
# BEGIN supercache
<IfModule mod_mime.c>
AddEncoding gzip .gz
AddType text/html .gz
</IfModule>
<IfModule mod_deflate.c>
SetEnvIfNoCase Request_URI \.gz$ no-gzip
</IfModule>
<IfModule mod_headers.c>
Header set Cache-Control 'max-age=300, must-revalidate'
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html A300
</IfModule>
# END supercache
Once you have added the entry in your .htaccess file click on update mod_rewrite rules under settings>Wp super cache
So with two simple steps, you will be making your wordpress blog to face the Digg or stumble effect.
If you have any question, do let me know.



→
{ 8 comments… read them below or add one }
Hi Harsh,
a very detailed post about the Super Cache plugin. I thought you could of added an image or details of how to check if it is working or not.
To see if it is working using Fx (Firefox), go to your page and then click on ‘View’ and then select ‘Page Source’. Then go to the bottom of the source code and you will see some details like:
If you see this then you know it is working and caching your page.
.-= George Serradinho ´s last blog ..Time Management “ Doing more tasks in less time =-.
Hi again,
I added the details, but I see that when I submitted my comment that it had taken it out.
It shows details about the dynamic and cached page.
.-= George Serradinho ´s last blog ..Time Management “ Doing more tasks in less time =-.
Very detailed post Harsh…not sure if i should install this plugin considering the traffic scene
.-= Curious Little Person ´s last blog ..Generate Organic Traffic for Profits =-.
Add where after the existing contents on ht access or before or by replacing them…?
.-= Srinivas ´s last blog ..Make Rapidshare Links On Warez-bb Clickable “ Firefox =-.
the ans is BEFORE existing descriptions.. update it on your post am gonna write a detailed post on this topic after i am done with setting up my messed up blog…
.-= Srinivas ´s last blog ..Make Rapidshare Links On Warez-bb Clickable “ Firefox =-.
Dude, is there any way I can check whether I did all these steps correctly ?
.-= S.Pradeep Kumar ´s last blog ..Tips To Improve And Increase Your Blog™s Loading Speed =-.
Thanks for this article! I forgot to add this to my .htaccess file. SMH
Hi harsh , I am reading your blog regularly, I want to know that which plugin you have used to convert your pages to .html . Please let me know?