Disable mod_pagespeed (no server conf access, .htaccess doesn't work)

zarsky picture zarsky · Dec 27, 2013 · Viewed 56.5k times · Source

I have a Wordpress site that my client wants to validate perfectly (using W3C validator). One of the issues is Google's pagespeed, which seems to be enabled by default by hosting provider.

I try to disable mod_pagespeed in .htaccess file with the following, but it doesn't work for some reason:

<IfModule pagespeed_module>
    ModPagespeed off
</IfModule>

I can disable it by adding "?ModPagespeed=off" to URL, but this does not solve my problem.

Is there anything else I can try? I only have access via FTP (no server conf access, no c-panel access, etc.).

Answer

Prateek picture Prateek · Feb 10, 2016

Create a .htaccess file, add below text and upload using ftp program. We are also a hosting provider and use Pagespeed.

Modpagespeed Off