Answer the question
In order to leave comments, you need to log in
Are there solutions or practices for redirecting a site to a mobile version of a site?
Faced with the fact that our store needs to be adapted for mobile devices, it’s easier for me to create a mobile version on WordPress ,
but how to do it? so that when determining the php script, the device type is automatically transferred from www.example.ru (simple version) to www.m.example.ru (mobile wordpress)
Answer the question
In order to leave comments, you need to log in
The $_SERVER variable contains information about the user agent of the user. You can analyze this information, and, having determined that the user is sitting from a mobile browser, send him to www.m.example.ru
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question