Jump to content

Trouble enabling Gzip or mod_deflate


Sam46

Recommended Posts

Hi

 

I am having issue enabling Gzip or mod_deflate on my host server.

 

This is my code for mod_deflate:

<IfModule mod_deflate.c>
#compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/php
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
</IfModule>

<IfModule mod_deflate.c>
#Or, compress certain file types by extension:
<files *.php>
SetOutputFilter DEFLATE
</files>
</IfModule>

<IfModule mod_deflate.c>
#compress gif|jpg|jpeg|png:
<Files ~ "\\.(gif|jpg|jpeg|png)$">
SetOutputFilter DEFLATE
</Files>
</IfModule>

as for GZip I used this code:

 

Gzip compression

 

The issue is that when I type my website on here:

 

www.gidnetwork.com/tools/gzip-test.php

 

to test to see how it works it kept saying NO

 

What can I do to make it work or enable? Any suggestions or advice? I just want to see how it compressed the files.

Link to comment
https://forums.phpfreaks.com/topic/279154-trouble-enabling-gzip-or-mod_deflate/
Share on other sites

@requinix

 

Thanks for the reply!

 

 

Can you post your website so we can see it ourselves?

 

I attached an image on how it looks and results:

 

post-157445-0-67411100-1371240533_thumb.png

 

I used photoshop to edit out my link so I added the word demo website.

 

Base on the results what can you see?

 

Did I do something wrong or I missed a code. I mean I can learn from my mistakes.

 

Anything suggestion would be good or directions because I got no idea why it's not showing.

 

Is it because my host server?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.