Get 30% off your WordPress Hosting with code WPSAVE10. Launch Faster. Save More!
  • 00 Days
  • 00 Hours
  • 00 Minutes
  • 00 Seconds

Enable GZIP Compression – Enhance Hosting

Enabling mod_deflate on a website will compress the HTML and CSS files through Gzip.

To enable Gzip Compression:

  1. SSH into the website you would like to enable mod_deflate on, or use the file manage
  2. Copy and paste the code below into the existing .htaccess file. If a htaccess does not exist, create a .htacess in the top-level directory
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/shtml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

This is only for Apache or LiteSpeed Enterprise web servers.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to disable PHP error reporting – Enhance Hosting

In this guide, we will learn how to hide or suppress PHP errors and notices such as the common...

How to manage DNS – Enhance Hosting

How to add or edit DNS To add or edit DNS entries: Open Websites in the left sidebar Select...

Add a Staging Site & Push Live – Enhance Hosting

To add a staging website Open Websites in the left sidebar Click Add new Select either Start...

Importing a cPanel backup – Enhance Hosting

The cPanel importer allows you to migrate a cPanel account into your website. To import a...

How to manage FTP accounts – Enhance Hosting

To add an FTP accounts on a single website: On the website dashboard select the advanced...