-
Anyone aware of a tool that allows you to use one link / URL and then have that link redirect a user based on their platform (desktop / mobile)?
Any server side script can read the User Agent string and programmatically modify the content which is served to the client. Writing the basic script is easy, it's just a matter of
if user_agent = [mobile]
then href = m.bbc.co.uk
else href = bbc.co.ukThe hard part is the regular expression in the square brackets, parsing all the User Agent strings to pick the mobile ones reliably.
Anyone aware of a tool that allows you to use one link / URL and then have that link redirect a user based on their platform (desktop / mobile)?
i.e
Displayed link: http://www.bbc.co.uk
User A (Desktop) clicks through to: http://www.bbc.co.uk
User B (on mobile / tablet) clicks through to: http://www.bbc.co.uk/mobile