Speed Up Your Website By Enabling Gzip Compression

Speed Up Your Website By Enabling Gzip Compression
  • 8

Speed Up Your Website By Enabling Gzip Compression

Enabling Gzip compression on your website drastically speeds up your websites load time! Gzip compression works by compressing your webpages which means the data transffered between web host to web browser (the visitor) is smaller which in turns makes load times faster!

Below is a quick and simple guide on how to enable Gzip compression for Sparrow Hosting customers


Step 1

Login to the Sparrow Hosting control panel with your login details






















Step 2

Once you are logged into control panel – Find and click “File Manager”


















Step 3

Once file manager has loaded click on the folder “public_html” – This folder is the root folder of your website



















Step 4

Find the file called “.htaccess” right click it and click “Edit”
















(if you can’t find the file named .htaccess you can create a file called “.htaccess” by clicking the 6th icon from the left)


Step 5

After clicking “Edit” a text box should appear – Enter the following code into the text box:

# DEFLATE by type – html, text, css, xml
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml

# DEFLATE by type – javascript
AddOutputFilterByType DEFLATE application/x-javascript application/javascript text/javascript text/x-js text/x-javascript

# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml php


and then click “Save & Close”