How to Enable Gzip Compression
Gzip compresses your pages before sending them, often cutting transfer size by 70%. It is a quick, high-impact speed win added through .htaccess.
Step-by-step
- Open Files → File Manager and enable "Show Hidden Files" in Settings.
- Open public_html/.htaccess (create it if missing) with right-click → Edit. Back up the current content first.
- Add a compression block using mod_deflate, for example:
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json text/xml
</IfModule> - Save the file.
- Test compression with any online "Gzip test" tool, or your browser dev tools Network tab (look for content-encoding: gzip).
- Combine with caching for the best result — see browser caching.