Title: htaccess Usage
Last modified: January 15, 2018

---

# htaccess Usage

 *  Resolved Anonymous User 14978628
 * (@anonymized-14978628)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/htaccess-usage/)
 * Hello,
 * In my cpanel under optimize website there is an option to “compress all content”.
   I have this enabled, so was wondering whether i need to include the following
   in my htaccess when using cache enabler bypassing php?
 *     ```
       # gzip HTML file
       RewriteCond %{ENV:CE_PATH} /$
       RewriteCond %{ENV:CE_PATH} !^/wp-admin/.*
       RewriteCond %{REQUEST_METHOD} !=POST
       RewriteCond %{QUERY_STRING} =""
       RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_
       RewriteCond %{HTTP:Accept-Encoding} gzip
       RewriteCond %{DOCUMENT_ROOT}%{ENV:SUB_PATH}%{HTTP_HOST}%{ENV:CE_PATH}index.html.gz -f
       RewriteRule ^(.*) %{ENV:SUB_PATH}%{HTTP_HOST}%{ENV:CE_PATH}index.html.gz [L]
       AddType text/html .gz
       AddEncoding gzip .gz
       </IfModule>
       ```
   
 * Also, in the settings for the plugin i didn’t select “Pre-compression of cached
   pages” option and this would give me the following at the end of my page:
 * <!– Cache Enabler by KeyCDN @ 10.11.2015 17:32:29 (html) –>
 * After enabling the above option i get the following instead:
 * <!– Cache Enabler by KeyCDN @ 10.11.2015 17:32:29 (html gzip) –>
 * Could you tell me how should i be enabling gzip? If i do it globally through 
   cpanel to compress all content, should i disable any gzip compression options
   in cache enabler? Or is it ok to have gzip enabled in cpanel and in the plugin
   as they won’t cause a conflict?
 * Thanks

Viewing 1 replies (of 1 total)

 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/htaccess-usage/#post-9866992)
 * If you’ve properly enabled Gzip on your origin server (cPanel) you should be 
   fine to leave the Gzip portion of the .htaccess snippet out. You can also disable
   the pre-compression feature.

Viewing 1 replies (of 1 total)

The topic ‘htaccess Usage’ is closed to new replies.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/htaccess-usage/#post-9866992)
 * Status: resolved