GZIP and Concrete58 users found helpful
I found this on google and added it to my .htaccess file
AddEncoding gzip .gz
mod_gzip_handle_methods GET POST
mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0"
mod_gzip_item_exclude mime ^image/
mod_gzip_item_exclude file \.js$
mod_gzip_item_exclude file \.css$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.pl$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/plain$
mod_gzip_item_include mime ^httpd/unix-directory$
Now I dont know if this is good/bad or otherwise, perhaps someone learned friend in the community can advise...
and check your site at :http://www.whatsmyip.org/http_compression/...
If your server doesn't support .htaccess, you can allso add the following code to the very first beginning of your C5 template, my header element looks like this:
And check again!
and check your site at:http://www.whatsmyip.org/http_compression/...
doesn't work no more...
Also found this useful link on gzip
Stupid question but should I just paste the above code in it .htcaccess located in my theme folder or do i need to go to the root folder?
In root folder, you don't need another one!
I thought that one should place it in the htacces. (where you add her Pretty URLs) file located in my theme folder ex. concrete / themes / themename /, but is it the same as placing it in the root folder? :-)
Thanks again Mike ps. i think my site in running faster now .. but are not sure if it's just the cache :-)
/ Mike (major Noob! :-))
However, if I check my website on http://www.whatsmyip.org/http-compression-test/... orhttp://www.gidnetwork.com/tools/gzip-test.php... it says my site is not gzipped?! Have I missed something?
This is what is in my .htaccess.
Header append Vary: Accept-Encoding
Which does two things, one for gzip and one for page speed.
Hmmmm...how do I actually ensure that the server is serving compressed versions of my file?!
All sites I run use my code above?
All servers have mod_deflate active, check with your hosting provider.
Add this line to your htaccess file:
AddType x-mapp-php5 .php
create a php.ini file and add this line to it
zlib.output_compression = On
put the php.ini file in the root of your site (same place as the htaccess file)
And test it!
This should be in the how-tos.
if it helps anyone else, I was getting a score of "F" until I added the following Expires, which increased Page Load Speed significantly:
# Enable expirations
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year”
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType text/css "access 1 month”
Just open the IIS Manager > Click on the site > Then click on URL Rewrite > Import rules
You can import the rules you have from the .HTACCESS to your IIS
This link might help: https://www.supinfo.com/articles/single/4737-using-the-htaccess-rule...
I don't think .htaccess works with iis. I would make the changes suggested at....
but the host/server administrator won't give me access to cpanel or php.ini (If there even is one for IIS, I don't really know)
Any help would be much appreciated as my site is still fairly slow at times. You can view the site athttp://www.eclinicalsol.com
Anyone here know how to fix this.
sub.maindomain.com (not working)
Thanks in advance
I am saying that because most shared hosts will tell you of course gzip is enabled and they won't tell you it's limited to the point of being useless.
eg. Files that are already compressed such as zip files, jpeg files and many kinds of video and sound files.
The benefit of zipping of some uncompressed graphic files types can be marginal (better to use a compressed file type) and can be enormously expensive in processor time for large files.
Compression is most effective on text based file types because they have a lot of wastage and repetitive sequences in the their content.
Hence a host that prohibits compression of some kinds of files could actually be doing a good job.
Nevertheless, script and css files are types I agree should be zippable.