• Resolved Matoca

    (@matoca)


    I would like to add your code for GZIP compression to the .htaccess file. You ask that it be placed “in your WordPress installation directory.”

    I do have an .htaccess in the WP installation directory, but there is also one in the public_html top level directory. I believe that Bluehost is referencing the public_html .htaccess rather than the one in the WP installation I have ZenCache plugin because it contains this line of code specifying the PHP version.
    # Use PHP5.4 as default
    AddHandler application/x-httpd-php54 .php
    # BEGIN WordPress

    The .htaccess in the WP installation does not contain this php information at the top. I know this is important because in June Bluehost somehow changed an .htaccess file and remove the PHP information, shutting down all my WP installations for 3 days. So from this I assume that the .htaccess file in my WP installation is being ignored by the server?

    I don’t run ZenCache on my other, smaller, WP installations. I am not sure if having this code referencing GZIP compression in my top level folder would disrupt these other WP blogs?

    So my question is do I add this GZIP code to the top level .htaccess file or do I fix the .htaccess file in the directory where ZenCache is installed, add the GZIP code and delete the top level .htaccess?

    Thank you,
    Matoca

    https://www.ads-software.com/plugins/zencache/

Viewing 1 replies (of 1 total)
  • Plugin Author Raam Dev

    (@raamdev)

    So my question is do I add this GZIP code to the top level .htaccess file or do I fix the .htaccess file in the directory where ZenCache is installed, add the GZIP code and delete the top level .htaccess?

    @matoca The GZIP Compression code can go in the top-level .htaccess file. If you have multiple sites running from that top-level directory, it just means that GZIP Compression will be enabled on all of those sites (which is fine–GZIP Compression is not dependent on ZenCache; it’s a function of the web server itself).

    If you’re still unsure, I recommend contacting your web hosting company and asking their advice. The code for your .htaccess file provided by ZenCache is not ZenCache-specific and your web hosting company can offer advice specific to your hosting environment.

    I hope this helps! ??

Viewing 1 replies (of 1 total)
  • The topic ‘GZIP compression: .htaccess file’ is closed to new replies.