Title: gzip compression problem
Last modified: November 10, 2020

---

# gzip compression problem

 *  Resolved [Technically Blonde](https://wordpress.org/support/users/technically-blonde/)
 * (@technically-blonde)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/gzip-compression-problem-2/)
 * I enable gzip compression and got the error message “Your server may not have
   the “deflate” module enabled (mod_deflate for Apache, ngx_http_gzip_module for
   NGINX).” Javascript and CSS are active but HTML is inactive.
 * I checked with my host and in a [support article](https://help.blacknight.com/hc/en-us/articles/212523089-GZIP-Compression-Deflate-Linux-Shared-Hosting)
   it said this
 * “For instance you can add the following to the top of your WordPress “wp-config.
   php” file:
    <?php
 * ob_start(“ob_gzhandler”);
 * If using the following plugins you must add the above to your “wp-config.php”
   file:
    WP Super Cache Hummingbird WP Rocket”
 * I did but it has not solved the problem.
 * The .htaccess looks like this
    # BEGIN iThemes Security – Do not modify or remove
   this line # iThemes Security Config Details: 2 # Pass through Authorization header.
   <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP:Authorization} ^(.*)
   RewriteRule .* – [e=HTTP_AUTHORIZATION:%1] </IfModule> # END iThemes Security–
   Do not modify or remove this line
 * # BEGIN WordPress
    # The directives (lines) between “BEGIN WordPress” and “END
   WordPress” are # dynamically generated, and should only be modified via WordPress
   filters. # Any changes to the directives between these markers will be overwritten.
   <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php
   $ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-
   d RewriteRule . /index.php [L] </IfModule>
 * RewriteEngine On
    RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC] RewriteCond %{
   SERVER_PORT} 80 RewriteRule ^(.*)$ [https://www.yourdomain.com/$1](https://www.yourdomain.com/$1)[
   R,L]
 * # END WordPress
    # BEGIN Enable Gzip Compression # The directives (lines) between“
   BEGIN Enable Gzip Compression” and “END Enable Gzip Compression” are # dynamically
   generated, and should only be modified via WordPress filters. # Any changes to
   the directives between these markers will be overwritten. # END Enable Gzip Compression#
   BEGIN WP-HUMMINGBIRD-CACHING # The directives (lines) between “BEGIN WP-HUMMINGBIRD-
   CACHING” and “END WP-HUMMINGBIRD-CACHING” are # dynamically generated, and should
   only be modified via WordPress filters. # Any changes to the directives between
   these markers will be overwritten. <IfModule mod_expires.c> ExpiresActive On 
   ExpiresDefault A0
 * <FilesMatch “\.(txt|xml|js)$”>
    ExpiresDefault A31536000 </FilesMatch>
 * <FilesMatch “\.(css)$”>
    ExpiresDefault A31536000 </FilesMatch>
 * <FilesMatch “\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|
   eot|ttf|otf|woff|svg)$”>
    ExpiresDefault A31536000 </FilesMatch>
 * <FilesMatch “\.(jpg|jpeg|png|gif|swf|webp)$”>
    ExpiresDefault A31536000 </FilesMatch
   > </IfModule>
 * <IfModule mod_headers.c>
    <FilesMatch “\.(txt|xml|js)$”> Header set Cache-Control“
   max-age=31536000” </FilesMatch>
 *  <FilesMatch “\.(css)$”>
    Header set Cache-Control “max-age=31536000” </FilesMatch
   >
 *  <FilesMatch “\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac
   |eot|ttf|otf|woff|svg)$”>
    Header set Cache-Control “max-age=31536000” </FilesMatch
   >
 *  <FilesMatch “\.(jpg|jpeg|png|gif|swf|webp)$”>
    Header set Cache-Control “max-
   age=31536000” </FilesMatch> </IfModule> # END WP-HUMMINGBIRD-CACHING # BEGIN 
   WP-HUMMINGBIRD-GZIP # The directives (lines) between “BEGIN WP-HUMMINGBIRD-GZIP”
   and “END WP-HUMMINGBIRD-GZIP” are # dynamically generated, and should only be
   modified via WordPress filters. # Any changes to the directives between these
   markers will be overwritten. <IfModule mod_deflate.c> SetOutputFilter DEFLATE
   <IfModule mod_setenvif.c> <IfModule mod_headers.c> SetEnvIfNoCase ^(Accept-EncodXng
   |X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ 
   HAVE_Accept-Encoding RequestHeader append Accept-Encoding “gzip,deflate” env=
   HAVE_Accept-Encoding </IfModule> </IfModule> <IfModule mod_filter.c> AddOutputFilterByType
   DEFLATE “application/atom+xml” \ “application/javascript” \ “application/json”\“
   application/ld+json” \ “application/manifest+json” \ “application/rdf+xml” \ “
   application/rss+xml” \ “application/schema+json” \ “application/vnd.geo+json”\“
   application/vnd.ms-fontobject” \ “application/x-font-ttf” \ “application/x-font-
   opentype” \ “application/x-font-truetype” \ “application/x-javascript” \ “application/
   x-web-app-manifest+json” \ “application/xhtml+xml” \ “application/xml” \ “font/
   eot” \ “font/opentype” \ “font/otf” \ “image/bmp” \ “image/svg+xml” \ “image/
   vnd.microsoft.icon” \ “image/x-icon” \ “text/cache-manifest” \ “text/css” \ “
   text/html” \ “text/javascript” \ “text/plain” \ “text/vcard” \ “text/vnd.rim.
   location.xloc” \ “text/vtt” \ “text/x-component” \ “text/x-cross-domain-policy”\“
   text/xml”
 *  </IfModule>
    <IfModule mod_mime.c> AddEncoding gzip svgz </IfModule> </IfModule
   > # END WP-HUMMINGBIRD-GZIP
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgzip-compression-problem-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/gzip-compression-problem-2/#post-13646168)
 * Hi [@technically-blonde](https://wordpress.org/support/users/technically-blonde/)
 * I’m sorry to hear that you are experiencing this issue.
 * Please use our secure contact form here [https://premium.wpmudev.org/contact/#i-have-a-different-question](https://premium.wpmudev.org/contact/#i-have-a-different-question)
   and make sure that subject is “I have a different question” and:
 * – **Mark to my attention: ATTN: Kris**
 * Kind Regards,
    Kris
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/gzip-compression-problem-2/#post-13692286)
 * Hello [@technically-blonde](https://wordpress.org/support/users/technically-blonde/),
 * We haven’t heard back from you for a while now and seems that this issue is solved.
 * If not, please feel free to re-open this ticket.
 * kind regards,
    Kasia
 *  [shadyanis](https://wordpress.org/support/users/shadyanis/)
 * (@shadyanis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/gzip-compression-problem-2/#post-13693421)
 * Hey Kris,
 * I tried using the support form but it kept saying (Image captcha validation failed)!
 * Where else to contact you?
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/gzip-compression-problem-2/#post-13695199)
 * Hi [@shadyanis](https://wordpress.org/support/users/shadyanis/)
 * I hope you are doing well.
 * Is the opened ticket from a member team or are you also having the issue?
 * In case you also have the issue, could you please create a new ticket and we 
   can take a closer look?
 * Best Regards
    Patrick Freitas
 *  [shadyanis](https://wordpress.org/support/users/shadyanis/)
 * (@shadyanis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/gzip-compression-problem-2/#post-13702687)
 * Hey Patrick [@wpmudevsupport12](https://wordpress.org/support/users/wpmudevsupport12/)
 * Will do now!
 * Thank you
    Shady

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘gzip compression problem’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

## Tags

 * [gzip](https://wordpress.org/support/topic-tag/gzip/)

 * 5 replies
 * 5 participants
 * Last reply from: [shadyanis](https://wordpress.org/support/users/shadyanis/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/gzip-compression-problem-2/#post-13702687)
 * Status: resolved