How do I enable compression on Bluehost hosted site?
Thanks
How do I enable compression on Bluehost hosted site?
Thanks
When you login to cPanel, look for the "Optimize Website" link.
Matt
My life can be summed up in one word, "indescribable".
Thanks for the reply!
I finally figured that out. Unfortunately, after many live chat sessions with support, I was told that the server decides when to compress and when not to. This is no good.
Is there any other way to compress my site so that my google page speed will be in the 90s? I would really like to get that page speed thing nailed down, but it seems impossible on blue host.
Thanks!
Yes it adds this code to your .htaccess file in your root:
Code:<IfModule mod_deflate.c> AddOutPutFilterByType DEFLATE text/plain text/html text/xml text/css text/javascript application/xml application/xml application/rss+xml application/javascript application/x-javascript <IfModule mod_setenvif.c> # Netscape 4.x has some problems... BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 # the above regex won't work. You can use the following # workaround to get the desired effect: BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary </IfModule> <IfModule mod_headers.c> # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary </IfModule> </IfModule>