.htaccess: Unknown filter provider DEFLATE
To fix this error and enable deflate in your cPanel server, you have to build Apache with deflate option.
- Log into WHM
- After you are logged in, search for "EachApache" in left menu and go to the main page
- Select "previously saved config" and click on "start customizing based on profile"
- Keep clicking "next" until you see the option for "exhaustive option list" and click on the button
- Look for "deflate" and check the box
- Click on "save and build" at the bottom of the page
Here is an example of the deflate code that you can use in .htaccess after you enable it on the server -
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript