How to enable compression on website?


When you check your website using http header tools you can see that your website is not optimize.


Compression is not enabled on your website.


You may force your website to use compression that has been ready by our web server. Please add below script into your .htaccess file. you may use either one of the options below:

  1. Force compression on all content.
    <ifModule mod_deflate.c>

    SetOutputFilter DEFLATE

  2. Force compression on selected files.
    <ifModule mod_deflate.c>
    <FilesMatch "\.(css|js|php|html|php3|xhtml|xml)$">

    SetOutputFilter DEFLATE


Please take note, compression on images sometime can cause image not able to display properly. we suggest you to use option 2 for better result.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Page is displaying 404 Page Not Found error

The 404 Page Not Found error means that the user requested a page on the server that does not...

How to change my default page?

You can change the home page yourself by doing the following: For Linux Server 1. Create a...

What are cron jobs?

Cron jobs are routines that execute a script on any given interval. For instance, you may have a...

Turn On/Off Directory Browsing

For Linux server: Turn on Directory Browsing -create a .htaccess file in the specific directory...

How to disable IPv6 on Centos

There are times where you might need to disable IPv6 on your Centos Server. Below are the options...