How can a set of php programs reasonably enable automatic access to websites on PC and mobile phones?

Source: Internet
Author: User
The program is the same. the domain name structure is as follows: PC-side domain name: www.xxxx.com mobile-side domain name: m.xxxx.com how to reasonably build a PC-side and mobile-side automatic access switch, don't tell me how to add a function to judge when accessing the mobile phone. in addition to different templates, how can the program end be more reasonable... the program is the same, and the domain name structure is as follows:
PC domain: www.xxxx.com mobile domain: m.xxxx.com
How to reasonably build automatic access between the PC and the mobile phone,
Do not tell me to add a function when accessing the mobile phone,
In addition to different templates, how can the program end perform more reasonable control?

Reply content:

The program is the same, and the domain name structure is as follows:
PC domain: www.xxxx.com mobile domain: m.xxxx.com
How to reasonably build automatic access between the PC and the mobile phone,
Do not tell me to add a function when accessing the mobile phone,
In addition to different templates, how can the program end perform more reasonable control?

The server can be exactly the same... You can use different front-end templates to render page functions.

Responsive layout?

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.