1: 2:
var s = document.url; if(s.match(/problem-domain/)) { location.href='http://www.good-domain.com'; }
1: 2: 3: 4: 5: 6: 7:
<html> <head> <script type="text/javascript"> if (location.host.match(/mobile.experts-exchange.com/) { location.replace(location.href.replace(location.host,'www.e-e.com')) } </script>