<script>
if ((navigator.userAgent.match(/(iphone)|(ipod)|(android)|(blackberry)|(windows phone)|(symbian)/i))){
window.location = "allodomain" + window.location.pathname;
}
</script>
<script>
if ((navigator.userAgent.match(/(iphone)|(ipod)|(android)|(blackberry)|(windows phone)|(symbian)/i))){
window.location = "allodomain" + window.location.pathname;
}
</script>