How do I direct phone users to m.test.com //for mobile*
and PC users to test.com // pc user
in php? Or should I do it in CSS?
How do I direct phone users to m.test.com //for mobile*
and PC users to test.com // pc user
in php? Or should I do it in CSS?
Basically, what you want is a browser switch: You act on the information, which browser is requesting and from which OS. You can do this either on the server (PHP) or on the client (JS):
$_SERVER['HTTP_USER_AGENT'] or get_browser(), then send a redirect via header() as needednavigator.userAgent and friends to decide, then set location.href to do the redirect.