V
V
vadimstroganov2014-11-01 17:27:34
HTML
vadimstroganov, 2014-11-01 17:27:34

How to redirect to the mobile version of the site?

Hello!
There is a site xxx.ru
How to make it so that if a person enters from a mobile device, he is redirected to the mobile version of the site m.xxx.ru?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2014-11-01
@xmoonlight

Either way, look at "Device type" and drive.

A
Alexander, 2014-11-01
@jooow

I would make a server, for example something like this link

S
Stanislav Kim, 2014-11-02
@cyberS7

https://github.com/jenssegers/laravel-agent
https://github.com/mewebstudio/Useragent
https://github.com/hisorange/browser-detect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question