Home › Forums › CSS › Redirect users if on desktop to new URL › Re: Redirect users if on desktop to new URL
April 18, 2013 at 7:00 am
#132287
Participant
you can use user agent detection with php on the serverside or with javascript on the client side.
With php the users user agent is stored in
$_SERVER
you can go with regex or strpos and testing for the devices you want and redirect with
header(‘Location: http://example.site.com/’)
Respsonsive design is always better though