if(document.location.host == 'example.com') location = 'http://example1.com/'+document.location.pathname+document.location.hash;