Hosting

  1. Home
  2. Support
  3. Hosting
  4. General
  5. Enabling Gzip

Enabling Gzip

Gzip compression is used to compress web pages, scripts, and stylesheets. This reduces the time it takes for a web page to load, which can improve user experience and SEO rankings. Its easily enabled using a .htaccess file and the following code,

<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> 

Simply add the above to your .htaccess file or create one within the above within file manager in your control panel.

Was this article helpful to you? Yes No
Click here for full details