Loading.....

Web + Open Source

↑ncreasing value, Decreas↓ng costs
Achieve the extraordinary.

Weblog


Our ramblings, links & observations on the web.

Website Load Balancer

If you looking to quick way to avoid high local bandwidth charges or manage high traffic sites more efficiently try add this into your mod_rewrite block in your .htaccess file.

	# High bandwidth redirect
	RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
	RewriteCond %{HTTP_REFERER} digg\.com [NC,OR]
	RewriteCond %{HTTP_REFERER} blogspot\.com [NC,OR]
	RewriteCond %{HTTP_REFERER} reddit\.com [NC,OR]
	RewriteCond %{HTTP_REFERER} slashdot\.org
	RewriteRule ^(.*)$ http://wwwa.domainname.com/$1 [R,L]

Read the rest of this entry »

admin | , | Optimisation | No Comments


Website Loadtime Optimisation

<IfModule mod_rewrite.c>
	Options +FollowSymLinks
	AddDefaultCharset UTF-8
	RewriteEngine On
	RewriteBase /
	# Optimisation
	Header unset Pragma
	FileETag None
	Header unset ETag
	<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
		Header set Cache-Control "public"
		Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
		Header unset Last-Modified
	</FilesMatch>
</IfModule>
<IfModule mod_deflate.c>
	<FilesMatch "\.(js|css|php)$">
		SetOutputFilter DEFLATE
	</FilesMatch>	
</IfModule>

admin | , | Optimisation | No Comments