Saving Bandwitch

November 1, 2010

I was thinking about how to save bandwitch in my hosting server for this wordpress blog.As you probably know there is good plugin for dealing with caching,such as WP Super cache for site with medium traffic ,arround hundreads more visitor per day.Also there is WP Total Cache which is aimed to handle caching problem for a site which has above thousands visitor per day,some high traffic blog site used this plugin e.g mashable etc.This two are great plugin though.

But I was looking for something that can be applied to generally php web application,non wordpress based.I was planning to build other site,which is non based wordpress.So this two plugin can not be applied to it.I was doing some search and read this and that about topic i was looking for.I finally found this pretty cool stuff,nice tips about saving bandwitch using .htaccess   file.

This trick works very good,it will compress your site into gzip extension.All files,including jave script,css will be compressed.That makes your site absolutely fast in loading and of course saving your bandwitch a lot.This is useful if you want to save your hosting bandwitch usage ,so you pay for what you actualy use and not some other unnecessary cost just because your site wasn’t compressed.

Just add the following line into your .htaccess file.This will work if your hosting server has mod_gzip enabled.It is an extra module for Apache server.Ask your server provider if you unsure about it.

  mod_gzip_on Yes
  mod_gzip_dechunk Yes
  mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  mod_gzip_item_include handler ^cgi-script$
  mod_gzip_item_include mime ^text/.*
  mod_gzip_item_include mime ^application/x-javascript.*
  mod_gzip_item_exclude mime ^image/.*
  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

give-comment

Love Songs December 3, 2010

Thanks for the tip on saving bandwidth. I’ve been trying to do this lately as well to save me costs so I don’t have to upgrade me server. I used something called Zoompf, it’s a website that shows you everything you can do on your website to save bandwidth, load time, and file size.

Reply to this

Kiran March 31, 2011

I am really new in the field of internet, I read your blog, its quite informative can you please tell me what is bandwitch. when i search it on internet it shows results of bandwidth.

Reply to this

akbar99 April 1, 2011

Ok I'll try to explain that in a simple, understanable on my next article.

Reply to this

Leave a Comment

Comment will not appear untill approved.Thanks for waiting.You can use these HTML tags and attributes:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: