Skip to content
Alavps Blog
Menu
  • Home
  • Hosting
    • Shared Hosting
    • Cloud Hosting
    • VPS Hosting
  • Domains
  • Blog
  • Contact
Menu

Enable GZIP compression to speed up the loading of your website

Posted on July 5, 2020 by alavpsblog

In this guide, we are going to explain how to activate the compression of certain static contents of your website so that the aforementioned contents occupy a smaller size and the time required to download the page is reduced.

By activating the GZIP on your website, you will notice that your website loads a little faster and you will also save bandwidth. This is all advantage to you..

To follow this guide you need to have an Apache webserver with the mod_deflate module activated, this is the case of our hosting servers, so if you have a hosting plan or reseller contracted with us you can follow the instructions in this guide.

Enable GZIP compression of CSS, Javascript, XML, HTML files, etc. It is as easy as adding the following to the .htaccess file located in the root directory of your website :

<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE application / atom + xml application / javascript application / json application / rss + xml application / xhtml + xml application / xml image / svg + xml image / x-icon text / css text / html text / plain text / x-component text / xml
</IfModule>

In case you have a shared or reseller hosting plan with us, the .htaccess file should be located at public_html / .htaccess.

Posted in Website TipsTagged gzip

Post navigation

Why VPS Is Safe Hosting For Most Of The Website Owners?
What is a Windows Hosting? Do I Need It?

Related Post

  • 2 Easy Steps To Block Any Country From Your Site Using .htaccess
  • cpanel cPanel Web Hosting – Advantages, Features, Guide

Leave a Reply Cancel reply

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

Categories

  • Hosting Advice
  • How tos
  • security tips
  • SSL
  • Tutorials
  • VPS Hosting
  • VPS Tips
  • Website Security
  • Website Tips
  • WordPress

Recent Posts

  • How to Create Studio Ghibli Style AI Images on ChatGPT for Free
  • 5 Free GPU Server for Students in 2025
  • How to Install Dual OS Windows 10 and Linux?
  • How To Use SMTP Ports: 25, 465, and 587
  • How CPU Cores Impact Your Website’s Speed and Reliability?
  • Brazil VPS Hosting – What You Need to Know Before Spending Your Money
  • How to Deploy Laravel on Ubuntu With Apache: A Comprehensive Guide
  • How to Install Calibre Server & Calibre Web on Ubuntu 22.04
  • How To Install LAMP On Ubuntu 16.04 With A Single Command
  • How to Install WordPress on a VPS Server (Manually)
Blog Update By Alavps