Page tree
Skip to end of metadata
Go to start of metadata

This document is for a previous release of cPanel & WHM. To view our latest documentation, visit our Home page.

For cPanel & WHM 11.46

(Home >> Software and Services >> Optimize Website)


This feature allows you to automatically compress specified types of content when visitors access that content.


Your system administrator must enable mod_deflate for the Optimize Website interface to appear in cPanel.

How to manage compression

To disable compression of your website's content, perform the following steps:

  1. Select Disabled.
  2. Click Update Settings.

To compress all of your website's content, perform the following steps:

  1. Select Compress all content.
  2. Click Update Settings.

To specify a list of types of content to compress, perform the following steps:

  1. Select the Compress the specified MIME types option.
  2. In the MIME types text box, enter the types of content that you wish to compress.
  3. Click Update Settings.


Image file formats are already compressed. Do not include any image file formats in the list.

Additional information

For more information about the software module that handles website content compression, you will need to know the version of the Apache web server software that your server runs. You can find this information on the main cPanel Home interface in the Stats sidebar.


 cPanel saves your settings to a .htaccess file in your home directory. You can customize these settings with the Apache FileMatch directive.