Do you want to change the look and feel of your Google Plus Badge, here is a simple tutorial about how to Customize Google Plus Badge for Website or WordPress Blog. Everybody is showcasing their…
It reduces Server response time and also reduces volume of data sent by server to web browser because of compressed page size. The best way to enable compression using mod_gzip or mod_deflate in WordPress .htaccess file. Gzip compression can be enabled by adding a simple code in WordPress .htaccess file of your website.
DEFLATE compression and Gzip Compression in WordPress
First you should check whether Gzip compression is enabled or not on your WordPress site. Google for Gzip compression test tool. You also need to find out which server you are using Apache or Nginx. Because Gzip compression method is different for both servers. You also need to figure out, how to edit WordPress .htaccess file. Here is a detailed guide on How to edit WordPress .htaccess file.
You might have read on web about Gzip compression and DEFLATE compression, both compression algorithms are different and used for different servers. Gzip compression is used on Apache and Nginx servers, while DEFLATE is only used on Apache server.
Just copy and paste given below code in WordPress .htaccess file and save changes. Now check your site on compression testing tools again, it will definitely reduce your website page size and will increase page-load speed.
Compression on Apache server
- Gzip Compression – Add following code in WordPress .htaccess file of your website.
- DEFLATE Compression – Add following code in WordPress .htaccess file of your website.
Compression on Nginx server
- Gzip Compression – Add the following code in configuration file of your website with Nginx server.
My blog TechNumero is hosted on Apache server, so I am using Gzip compression and DEFLATE compression both on my website. And it is reducing webpage size by 82.2%. Initially my web page size is 42,656 Bytes (without compression) and after compression my web page size is 7,596 Bytes only. Hence I am Saving 35,060 Bytes using Gzip Compression on Technumero.com.
Hope you will find this information useful, if have any question regarding Gzip compression in WordPress please post it in comment section below. Let us know which compression method you use on your site.