var data = window.location.href;
	if(data.indexOf('http://www.')==0){		}
else{ var newurl = data.replace('http://', 'http://www.');window.location  = newurl;}	

Add the above lines in under script in head tag section in every html page.

Advertisements