: Can I enable GZIP on Godaddy? One of my sites lives on GoDaddy's bottom-of-the-line cheap hosting, I have the correct code in my .htaccess file, but it's not compressing because mod_deflate is
One of my sites lives on GoDaddy's bottom-of-the-line cheap hosting, I have the correct code in my .htaccess file, but it's not compressing because mod_deflate is not loaded.
How do I enable that?
The best I've found is an article on GoDaddy which suggests I use PHP to zip everything (which is going to be more work than just changing hosting companies):
Add the following code to the very top of your Web pages above the DOCTYPE:
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'))
b_start("ob_gzhandler");
else ob_start();
More posts by @Gail5422790
2 Comments
Sorted by latest first Latest Oldest Best
I know this is an old question, but it shows up early on google so I thought I would answer it. You can now enable gzip on GoDaddy by adding the following to the .htaccess in your root directory.
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
Source - GoDaddy Support
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.