Answer the question
In order to leave comments, you need to log in
What is the best way to make the transition to the mobile version of the site?
After the next letters from Google, we decided to adapt our site for a mobile version. There were 3 options for how to do this:
1. make a subdomain m.site.ru and redirect mobile traffic there
2. Depending on the browser, serve different pages at the same address, for mobile users and PC users
3. Always give one content but using js to determine the screen size and type of platform and after that it is more convenient to form content
Interested in which option is better for the PS and for users in general
Answer the question
In order to leave comments, you need to log in
With responsive web design, you use the same URLs and web page code across all devices. The page automatically adjusts to the screen of a computer, tablet or mobile phone, making it convenient for the user to work with any version of the site. Google recommends using AED. Thanks to AED, you only need to maintain one, not two versions of the site. In other words, you don't need to serve both desktop (www.example.com) and mobile (m.example.com) versions at the same time, because one site (www.example.com) will work for both desktop and mobile users.
1. adaptive layout.
2. m.site.ru
3. site.ru/m
as you wish.
I did using the php library Mobile Detect , determined the mobile device and sent it to site.com/mobile/. There is a mobile version of the site.
None of your three.
The correct answer is media queries
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question