HTTP compression / gzip content compression

The HTTP compression makes better use of available bandwidth, and provide greater transmission speeds between the server and the client.

- The cPanel provides you an easy way to do this from the "Software/Services" section -> Optimize Website -> Compress Content

- If you have a VPS or a dedicated server, perhaps you use a free open sourse control panel such the "Kloxo". If you use Kloxo, you can enable the HTTP compression from -> Domain Home -> Servers -> localhost -> PHP Config -> Output Compression

You can also do this manually by adding some code in your .htaccess file in your public_html folder. Open your public_html folder, find you .htaccess file (you need to select the "Show Hidden Files (dotfiles)" tickbox when you open the cPanel file manager or set your ftp program to display the hidden files if you use any ftp client. Add the following lines to the .htacces file and then save:

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

Congratulations! Now your content is compressed!

Σας βοήθησε αυτή τη απάντηση;

Επίσης Διαβάστε

I need to use a different version of PHP

You can easily set the prefered PHP version via the .htaccess.Most of our servers use the PHP...

How can I change the name servers?

  In order to use a ZiZ Hosting Plan, you have to update the name servers of your...

What is php.ini ?

The php.ini file is a special file for suPHP (pronounced sue-p-h-p). The php.ini file...

Which is your server's Operating System (OS)?

  We have chosen the Linux operating system, not only for our servers but also for our...

How Do I Connect to My Server via SSH?

Windows To access SSH: Download WinSCP or PuTTY. Enter your IP address and the appropriate...