L
L
leha782016-04-19 07:32:23
PHP
leha78, 2016-04-19 07:32:23

How to transfer the mobile version of the site to m.site.com?

Usually I make sites on bootstrap and just customize the template for mobile phones. Here the question arose, what is the plus when sites are redirected to m.site.com? Is it worth it now, and most importantly, how is it done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DrunkMaster, 2016-04-19
@leha78

how it's done

Catch mobile phone in $_SERVER array and redirect to subdomain
The advantage is that in the regular version, which is adaptive, sometimes there is too much text designed for large screens, don’t fold such a page - it still looks redundant on mobile.
It depends on the project, on one project I did this, on the rest I did not. You can also not redirect to m.site.com, but simply replace the page with a mobile one on the same site.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question