PHP$isiPad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad');
JAVASCRIPT
var isiPad = navigator.userAgent.match(/iPad/i) != null;
REDIRECT
1.#redirect mobile browsers2.RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$3.RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]4.RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$5.RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]6.RewriteCond %{HTTP_USER_AGENT} ^.*Palm.*$7.RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]
Nessun commento:
Posta un commento