I want the to know the correct desktop to mobile redirection logic. How should a visitor be sent to mobile version or the desktop version of site?
I've a mobile site: m.example.com
and desktop site at: www.example.com
What I'm using now:
- First visits will be detected and redirected to mobile or desktop version
- Second time onward same session visit to any URL (mobile or desktop) will not be redirected. I mean if first time a
m.example.com
is served and then the user typeswww.example.com
then desktop version will be served from his mobile device
What is the correct way when to transfer a visitor to mobile or the desktop version?