When accessing the finished website from a mobile phone, users are redirected directly to /wap.

Published: 2014-06-30

```html

 You need to edit the template file /wwwroot/base/templates/header.htm and add the following at the end:
<script type="text/javascript">
<!-- // Platform, device, and operating system
var system ={
win : false,
mac : false,
xll : false
};
//Detect the platform
var p = navigator.platform;
system.win = p.indexOf("Win") == 0;
system.mac = p.indexOf("Mac") == 0;
system.x11 = (p == "X11") || (p.indexOf("Linux") == 0);
//Redirect statement: if accessed from a mobile phone, then
if(!(system.win||system.mac||system.xll)){
window.location.href="http://www.xxxxxx.cn/wap";
}
-->
</script>
Replace the red URL part with your own mobile site address 


Related link: Bind a domain name to the mobile site of a pre-built website through the rewrite component http://www.west.cn/faq/list.asp?unid=770

```