Skip to content
DubaiFunClub's profile

New Member

 • 

1 Message

Saturday, June 30th, 2018 12:00 AM

Enable Gzip on your website

Hello I need to start a forum on gzip enable on your web server. It is sayig that now a days it is very easy to enable gzip on latest web servers. Unfortunatelly for me it is not working for my website Dubai Fun Club https://dubaifunclub.com a personal entertainment website in Dubai cannot be enabled.  I have tried adding it using .htacces file using the below code:


AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/opentype

# For Olders Browsers Which Can't Handle Compression
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

 

 

New Contributor

 • 

3 Messages

6 years ago

Since you are using .htaccess files I am assuming yoiu are using apache correct?

 

If thats the case, you enable the mod_deflate 

Ubuntu would be

 

a2enmod deflate

 

or for BSD

/usr/local/etc/apache24/httpd.conf

uncomment "LoadModule deflate_module modules/mod_deflate.so"

 

and then you need to go into your site's config file and add the text you added to the .htaccess file.