I want to know what would be the best way to present my site to users when they are not using desktop computers (and they are using mobile phones, smartphones or tablets)? I am currently working on a website and I am trying to look for the best way to handle this problem
I have 2 options:
Redirect all the users (others than users using a desktop based browser) based on a user-agent filter to a mobile version of the site and change the url to m.example.com
Keep the url (like example.com) and just change the template with the mobile optimised one
I also want to know how search engines would view this change.