How To Enable Gzip Compression Using .htacess

preview_player
Показать описание
Learn How to Enable Gzip Compression Using .htacess in your website

paste this code in htacess file
NOTE- PLEASE REPLACE Angle brackets WITH ITS SYMBOL youtube doesn't allow us to write Angle brackets
#Enable gzip compression
Angle brackets IfModule mod_deflate.c Angle brackets
AddType x-font/woff .woff
AddType x-font/ttf .ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
Angle brackets/IfModule Angle brackets
# END Gzip compression

-------------------------------------------------------------------------------------------------------
High Performance Hosting must try
-----------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------
Get in touch with us on Social Media.

--------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

it is working to me 99% enable compression .. thanx alot

safwan
Автор

thank you so much. this was the most helpful

somalipirates
Автор

Hello sir how to use in HTML site please hepl

sonukatru
Автор

Hi Rahul, thanks for the information I followed your instruction and I got an 100% compression result.

priyamvishinformation
Автор

I put this code but it said not compressed

kimanoodles
Автор

If i use embedded YouTube code then what should i do?

kahaniguruhindi
Автор

tried and posted this code in .htaccess file, yet gt metrix is showing 0% gzip compression...?

the_terrific_m
Автор

hai i'm applied your code but no improvement plz rpl friend..

venkatsurya
Автор

how to compress video through .htaccess which is our own server?

skmotoriders
Автор

website access got blocked and now all data is lost. what is this? a scam?

kinzaeman
Автор

Hello Sir, its not working in my file.. as my file is on core php

websitedesigning
Автор

GTmetrixs always shows me 0 score for Specify image dimensions, how you do that to 99 point

augustvapewholesaler
Автор

So to enable GZip i just need to paste that code into my .htaccess file am I right? I dont need to download any gzip files or anything first?

chrishill
Автор

Bro, my in gmetrix, it shows enable compression, not enable gzip compression. Will it work for enable compression file. Plzz bro help me. I facing dis problem for last one week. Plzz help

mrigendrakumar
Автор

sir how to video upload link in database give me code sir

mukeshbhati
Автор

for php : if gzip compression is not working, then check your php.ini. and enable

*output_compression* =on


for wordpress check

codebuilders
Автор

I got 500 error after pasting this code 🤧

GovjobinAssam