Two versions of the same website are written. Conventionally, the "first" version is uploaded to the server and is available at the address "first_site.domain", the design is designed for devices with large screens, i.e. computers
Appearance and functionality of the "second" version is adapted for mobile phones and tablets. How to explain to the server when and which version to issue to the user's request? What name or extension should have a "second" site, something like "m. Second_site.domain"? Thank.

1 answer 1

Http://mobiledetect.net/ Regarding the subdomain for the mobile version, it does not matter how you like.