How can I redirect users from a mobile page to a standard web page?

  • 3 December 2013
  • 1 reply
  • 2 views

I know how to redirect to a mobile page, but is there a way to redirect to a standard web page?

For example, if I’m targeting mobile users, when advertising, I will use the link for my mobile page as the destination URL, but if in some instances non-mobile users see my ad I would like them redirected to a non-mobile page.


1 reply

Hi Audrey,

The detection of desktop browsers can be done similarly to the detection of mobile browsers, some research will have to be done to sort out exactly which User agents you’re after but it should be straight forward after that. Take a look at this link below it explains how to sniff browsers using the navigator object, there is also another method there using object detection so you can use which ever suits you best.

http://www.javascriptkit.com/javatuto…

Hope this helps !

Reply