How to I enable Mod_PageSeed on my CPanel hosting account?

We have Google's PageSpeed module installed on every web hosting account but it is turned off by default to make sure it doesn't inadvertently break your website. To bring it into action is quite simple and just needs a couple of lines added to your .htaccess file.

You can read how to How to Edit .htaccess File via the cPanel Filemanager? and you will just need to add the following to activate PageSpeed

<IfModule pagespeed_module>
ModPagespeed on

The .htaccess file can be used to control most of the directives in mod_pagespeed. You can see a list of available directives here: Directives that can be used with .htaccess and <Directory> scope

At the time of writing (July 2016 and version this list of available directives are:

  • ModPagespeedAllow
  • ModPagespeedAvoidRenamingIntrospectiveJavascript
  • ModPagespeedBeaconUrl
  • ModPagespeedCombineAcrossPaths
  • ModPagespeedCssImageInlineMaxBytes
  • ModPagespeedCssInlineMaxBytes
  • ModPagespeedCssOutlineMinBytes
  • ModPagespeedDisableFilters
  • ModPagespeedDisallow
  • ModPagespeedDomain
  • ModPagespeedEnableFilters
  • ModPagespeedImageInlineMaxBytes
  • ModPagespeedImageLimitOptimizedPercent
  • ModPagespeedImageLimitResizeAreaPercent
  • ModPagespeedJpegRecompressionQuality
  • ModPagespeedJsInlineMaxBytes
  • ModPagespeedJsOutlineMinBytes
  • ModPagespeedLowercaseHtmlNames
  • ModPagespeedMapOriginDomain
  • ModPagespeedMapRewriteDomain
  • ModPagespeedMaxInlinedPreviewImagesIndex
  • ModPagespeedMinImageSizeLowResolutionBytes
  • ModPagespeedModifyCachingHeaders
  • ModPagespeedRetainComments
  • ModPagespeedRewriteLevel

If you need any support with either activating pageSpeed or optimising your website please raise a support ticket and we will be happy to help.


  • 0 Users Found This Useful
Was this answer helpful?

Couldn't find what you are looking for?

Related Articles

PageSpeed broke my site; what do I do?

First of all, sorry about that. The Pagespeed team put a lot of work into validating the...

I am getting 404s for rewritten resources when using Mod_Pagespeed

The most common reason that the rewritten resources 404 is because of mod_rewrite RewriteCond...

PageSpeed causes my page to display an XML Parsing Error message

This usually happens when using a content management or generation system (we've seen it with...