Support » Fixing WordPress » Gzip compressing without mod deflate?

  • Jakob96


    I have a problem. My website loads quite slow, and that’s why I want to have Gzip-compressing. But my web host has disable mod deflate but Gzip is enabled.

    So, is there anyway to have Gzip compressing without mod deflate? 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • amsgator


    try adding this to your .htaccess file

    <ifModule mod_gzip.c>
    	mod_gzip_on Yes
    	mod_gzip_dechunk Yes
    	mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
    	mod_gzip_item_include handler ^cgi-script$
    	mod_gzip_item_include mime ^text/.*
    	mod_gzip_item_include mime ^application/x-javascript.*
    	mod_gzip_item_exclude mime ^image/.*
    	mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

    Then check your website here to see if it worked:



    Thank you! It worked, but I don’t notice any big difference.



    It should tell you on that page how much the file size is reduced. Some things compress more than others. It could also be the server itself and things outside your control that your webhost handles.

    Test your site here and it will give you advice on how to make it faster:

    Click on “Performance Grade” and the arrows on the right side will expand the different tests and show you how to better optimize your site

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gzip compressing without mod deflate?’ is closed to new replies.