Home » .htaccess » How to Enable GZIP Compression

How to Enable GZIP Compression

In this post, We going to see how to enable GZIP compression using a .htaccess file. To perform quick load time on your website first you need to reduce the size of your webpage. By enabling GZIP compression will help to reduce the size of your webpage, this can increase the webpage speed and reduce the amount of time to download the file request.

How to Enable GZIP Compression

Here we have few options to enable the GZIP compression, below in this we can see how to do that.

Using WordPress Plugin Enable GZIP

By using WordPress plugins we can enable GZIP compression easily. Using some of the WordPress plugins are add the code automatically in .htacces. Even though these are WordPress plugins, this still relies on permissions to change files on your web server. If your caching plugin doesn’t have support, you will need to contact your hosting provider.

Here you have few plugins to enable GZIP.

1. WP Fastest Cache
2. Hummingbird
3. W3 Total Cache

Using Apache Enable GZIP

By using the .htaccess file you can enable GZIP compression. Most of the shared hosting use Apache Server in that you have .htaccess file using that you can edit and add the following below code in your .htaccess. You can find the .htaccess file in your root folder. If you can’t able to see the file here you have an article.

Check whether the GZIP compression is working fine or not using the GZIP compression tool.

Note: If you get 500 Internal Server Error you need to check your server error log to solve this issue.

Was this article helpful?

Yes No

How can we improve it?


We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest


Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top