Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
- $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android");
- $palmpre = strpos($_SERVER['HTTP_USER_AGENT'],"webOS");
- $berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry");
- $ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");
- if ($iphone || $android || $palmpre || $ipod || $berry == true) {
- header("Location: http://YOUR-SUBDOMAIN");
- exit();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement