Brotli compression is now enabled on all MyHost shared hosting servers to make your website load faster and reduce bandwidth usage. However, if you need to temporarily disable Brotli compression to help with testing, you can easily do so by making a few changes to your .htaccess
- Login to cPanel: https://myhost-clients.com/knowledgebase/19/How-do-I-login-to-cPanel.html
- Open File Manager
- Under the Files section, click File Manager.
- Navigate to the public_html folder (or the folder where your website files are stored if this is an Addon Domain).
- Edit the
.htaccess
File- Locate the
.htaccess
file in your website’s root directory - If you can’t see it, enable Show Hidden Files from the Settings menu in the top-right corner
- Right-click the
.htaccess
file and select Edit.
- Locate the
- Add the Brotli Disable Rule
- At the top of your
.htaccess
file, add the following lines: -
<IfModule brotli_module>
SetEnv no-brotli
</IfModule>
- At the top of your
5.Click Save Changes in the editor.
6. Clear your browser cache and test your website again.
Re-Enabling Brotli Later
To re-enable Brotli compression, simply remove the lines you added above.