How to make the website judge is mobile client access, if it is to jump to the mobile version

Source: Internet
Author: User

<script src= "Http://siteapp.baidu.com/static/webappservice/uaredirect.js" type= "Text/javascript" ></ Script>
< script type= "Text/javascript" >uaredirect ("www.imiansha.com");</script>
Is the above code, we copy, the URL is changed, this code is the use of Baidu, because the SEO tutorial network is also a mobile version, but I found that when the mobile phone access is still appearing on the computer version, so I was thinking how to automatically appear mobile phone version of it? I think for a few days suddenly think of the past to do Baidu app when there is this section of code, I do not know whether it can? The results are successful! This is the status of feedback to Baidu, let Baidu judge if the phone in the access to jump into the mobile phone version, if not then into the Internet version, in fact, is a remote judgment statement.
Reprinted from: http://www.dgzone.net/Design-Knowledge/661.htm

How to make the website judge is mobile client access, if it is to jump to the mobile version

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.