GZIP compression: .htaccess file
-
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 WordPressThe .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
- The topic ‘GZIP compression: .htaccess file’ is closed to new replies.