Title: Enabling GZIP Compression
Last modified: August 21, 2016

---

# Enabling GZIP Compression

 *  Resolved [pbm160](https://wordpress.org/support/users/pbm160/)
 * (@pbm160)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/enabling-gzip-compression/)
 * Hi
    I am a bit lost with all the different .htaccess files that BPS shows in 
   wp dashboard. I have quick cache plugin and to enable GZIP Compression I have
   to add the following lines to the .htacess but I don’t know which .htaccess (
   root, wp-admin?): <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/
   html text/xml text/css text/plain AddOutputFilterByType DEFLATE image/svg+xml
   application/xhtml+xml application/xml AddOutputFilterByType DEFLATE application/
   rdf+xml application/rss+xml application/atom+xml AddOutputFilterByType DEFLATE
   text/javascript application/javascript application/x-javascript AddOutputFilterByType
   DEFLATE application/x-font-ttf application/x-font-otf AddOutputFilterByType DEFLATE
   font/truetype font/opentype </IfModule>
 * So my question is: where do I put these lines?
    Is this a custom code? Or do 
   I only need to go to Edit/upload/Download” and add the lines to one the .htaccess
   file? And which one? Thanks
 * [http://wordpress.org/extend/plugins/bulletproof-security/](http://wordpress.org/extend/plugins/bulletproof-security/)

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

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/enabling-gzip-compression/#post-3848570)
 * php/php.ini handler code and caching code goes in this Custom Code text area/
   text box:
    CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE: Add php.ini handler
   and/or plugin cache code here
 * 1. Copy and paste your custom caching code into the CUSTOM CODE TOP PHP/PHP.INI
   HANDLER/CACHE CODE text area/text box.
    2. Click the Save Root Custom Code button.
   3. Go to the Security Modes page, click the Create secure.htaccess File AutoMagic
   button. 4. Activate Root Folder BulletProof Mode again.
 *  Thread Starter [pbm160](https://wordpress.org/support/users/pbm160/)
 * (@pbm160)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/enabling-gzip-compression/#post-3848646)
 * Thanks for your help. I followed the direction and everything makes more sense
   now.
    All done & all OK! Thanks again.

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

The topic ‘Enabling GZIP Compression’ is closed to new replies.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [pbm160](https://wordpress.org/support/users/pbm160/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/enabling-gzip-compression/#post-3848646)
 * Status: resolved