Enable Gzip Compression

Gzip compression is enabled by adding some code to  .htaccess file. Open the file and add the below code

—————————————————–
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
—————————————————–




Save the .htaccess file and then refresh your webpage.

 
Check to see if your compression is working using the Gzip compression tool.
 

  • Compression, Gzip, .htaccess
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Force Site To Use Only HTTPS

With Google pushing hard for sites to use https, and security for websites and logins becoming...

Using .htaccess file to block IP addresses

Create the .htaccess file in your domain's directory. Add the following to your .htaccess file:...

Redirecting http://www.example.com/ to http://www.example.com/dir2/

This redirection will be done using Apache's mod_rewrite with the .htaccess file. You will need...

Use of .htaccess

What is a .htaccess file?A .htaccess file is a type of Apache(web server) configuration file. It...

Powered by WHMCompleteSolution