Skip to Content
Shared hosting (cPanel)Using cPanelSoftware

Optimize website

This interface lets you configure your server to automatically compress certain types of content when visitors access it.

Note

The server administrator must enable Apache's compression module (mod_deflate) for this interface to appear in cPanel.

Manage compression

To disable compression of your site's content: Select Disabled, then click Update Settings.

To compress all of your site's content: Select Compress All Content, then click Update Settings.

To compress specific content types:

Select Compress the specified MIME types.

In the MIME types box, enter a space-separated list of types, such as: text/html text/plain text/xml.

Note

Image file formats (such as .jpg and .png) are already compressed; don't include them in the list. Apache can also compress PHP content if you enable the zlib.output_compression setting in the MultiPHP INI Editor.

Click Update Settings.

Note

cPanel saves these settings in the .htaccess file in your home directory, and the server administrator customizes them through Apache's file-matching directive (FileMatch).

How is this guide?

On this page