Method 1:
<script type="text/javascript"> var mobileUrl = "wap.um html .com"; if (/iphone|nokia|sony|eri css on|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|wap|android|iPod/i.test(navigator.userAgent.toLowerCase())) { if (mobileUrl) { document.location.href = mobileUrl; } } </script>
Method 2:
<script type=”text/javascript”> if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { window.location = “wap.umhtml.com”; //It can be changed to http address } </script>
<script src=”device.min.js”></script>
<script type=”text/javascript”> if(device.mobile()){ window.location = “wap.umhtml.com”; //It can be changed to http address } </script>