⚡ WordPress · Client-side · No data sent to server
.htaccess Gzip Compression Generator
Switch on gzip compression in Apache by generating a mod_deflate block for your .htaccess file. Pick the content types to compress, then copy the rules. This is the common fix for the "enable text compression" warning on WordPress sites.
Content types to compress
Already-compressed formats like JPEG, PNG, WebP, MP4, and woff2 are left out on purpose: compressing them again wastes CPU and can make files larger.
Options
Copied
Where this goes. Paste the block into the .htaccess file at your site root, above or below the WordPress rewrite rules. It only takes effect if Apache has mod_deflate enabled, which nearly all hosts do. Rules are built in your browser; nothing is sent anywhere.