Instalasi Plugin WP Super Cache untuk Wordpress anda
Category: Tips
Kami menyarankan situs anda yang menggunakan wordpress untuk terinstall plugin WP Super Cache, agar tidak membebani server.
Plugin WP Super Cache juga membuat situs anda dapat dengan cepat diload serta terhindar dari suspend yang dilakukan oleh administrator kami, apabila situs wordpress anda banyak pengunjung dan membuat server Overload karena Query MySQL yang dilakukan oleh wordpress tersebut.
Cara memasang Plugin WP Super Cache adalah sebagai berikut
1. Download Plugin dari situs WP Super Cache ,
2.Upload plugin tersebut ke folder plugin wordpress anda,
contoh : /home/usernamecpanel/public_html/wp-content/plugins
3.Aktifkan Plugin WP Super Cache tersebut dari Dashboard Plugin Wordpress anda
4.Buat file .htaccess pada root direktori public_html anda
contoh : /home/usernamecpanel/public_html/.htaccess
Masukkan kode berikut pada file .htaccess tersebut
RewriteEngine On
RewriteBase /
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 %{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]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]