{"id":91,"date":"2010-11-22T04:24:13","date_gmt":"2010-11-22T02:24:13","guid":{"rendered":"http:\/\/oktay.com\/wp\/wordpress\/?p=91"},"modified":"2010-11-22T04:24:13","modified_gmt":"2010-11-22T02:24:13","slug":"ipad-iphone-ipod-erkennen","status":"publish","type":"post","link":"https:\/\/wp.oktay.com\/?p=91","title":{"rendered":"ipad iphone ipod erkennen"},"content":{"rendered":"<p>The JavaScript<br \/>\nCopy this code to the clipboard<br \/>\n1<br \/>\nvar isiPad = navigator.userAgent.match(\/iPad\/i) != null;<br \/>\nA quick String.match regular expression test can check for the presence of &#8220;iPad&#8221; in the user agent string.<\/p>\n<p>The PHP<br \/>\nCopy this code to the clipboard<br \/>\n1<br \/>\n$isiPad = (bool) strpos($_SERVER[&#8216;HTTP_USER_AGENT&#8217;],&#8217;iPad&#8217;);<br \/>\nThis time we look for the position of &#8220;iPad&#8221; in the user agent string.<\/p>\n<p>The .htaccess<br \/>\nCopy this code to the clipboard<br \/>\n1<br \/>\nRewriteCond %{HTTP_USER_AGENT} ^.*iPad.*$<br \/>\n2<br \/>\nRewriteRule ^(.*)$ http:\/\/ipad.yourdomain.com [R=301]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The JavaScript Copy this code to the clipboard 1 var isiPad = navigator.userAgent.match(\/iPad\/i) != null; A quick String.match regular expression test can check for the presence of &#8220;iPad&#8221; in the user agent string. The PHP Copy this code to the clipboard 1 $isiPad = (bool) strpos($_SERVER[&#8216;HTTP_USER_AGENT&#8217;],&#8217;iPad&#8217;); This time we look for the position of &#8220;iPad&#8221;&hellip; <a class=\"more-link\" href=\"https:\/\/wp.oktay.com\/?p=91\">Continue reading <span class=\"screen-reader-text\">ipad iphone ipod erkennen<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-bash","entry"],"_links":{"self":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=91"}],"version-history":[{"count":0,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/91\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}