Webmail Login
Control Panel Login
Speed up your site by enabling Gzip compression
.CO.UK ONLY £5.33
Find your perfect domain here

Speed up your site by enabling Gzip compression

By setting up compression on your hosting, you should see an decrease in load times. Compression is where a file is 'squished' down in size before it is sent to the browser. It is quicker for a visitor to download a compressed version of your site and uncompress it as opposed to downloading the uncompressed version. This is just one quick and easy way to further optimise your site for your visitors.

The below guide will show you how to add compression specifically for your Squirrel Hosting account. However, if you are not hosted with us, the below guide may still work depending on how your server is set up.

Step 1

Log in to your Squirrel Hosting account. Click on 'view / manage your hosting'.

Log in

Step 2

Click on the 'eXtend control panel' icon for the hosting account that you wish to access.

extend control panel

Step 3

Next, click on the 'File Manager' icon.

file manager

Step 4

Locate and right click on your.htaccess file then click 'edit' (if you do not have a .htaccess file, click the new file icon at the top to create one).



Step 5

Copy and paste the following code into the htaccess file:

# 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

Click 'save and close'.


A window should pop up confirming that the file has been saved. Click ok and you will now have enabled compression.

compression enabled

Leave a comment

Has this guide helped you? Have an idea for a guide or need help? Let us know below.

© Copyright 2014 | Squirrel Hosting Limited
Company Number 9031308