<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Detect iPad and Redirect to iPad Version Website</title>
	<atom:link href="http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/feed" rel="self" type="application/rss+xml" />
	<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website</link>
	<description>Website Designer and Developer, Flash, Wordpress, jQuery, and Other Scripts</description>
	<lastBuildDate>Mon, 28 Nov 2011 19:38:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Kyle</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-2121</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Thu, 17 Nov 2011 18:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-2121</guid>
		<description>Great piece of code for mobile redirects, and very easy to add other mobile devices. Thanks</description>
		<content:encoded><![CDATA[<p>Great piece of code for mobile redirects, and very easy to add other mobile devices. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Naylor</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-2058</link>
		<dc:creator>Jesse Naylor</dc:creator>
		<pubDate>Wed, 14 Sep 2011 10:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-2058</guid>
		<description>Jalen, I think the best way out would be to include a button in the iPhone/iPad version of the site, with something like &quot;take me to the desktop version of this website&quot;, which redirects you to an exact copy of the website but without the device detection code in the files. I understand this is something similar to how Facebook does it on their mobile device version, possibly?
Thank you so much for sharing this code! It&#039;s exactly what I needed.</description>
		<content:encoded><![CDATA[<p>Jalen, I think the best way out would be to include a button in the iPhone/iPad version of the site, with something like &#8220;take me to the desktop version of this website&#8221;, which redirects you to an exact copy of the website but without the device detection code in the files. I understand this is something similar to how Facebook does it on their mobile device version, possibly?<br />
Thank you so much for sharing this code! It&#8217;s exactly what I needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K.Bryan</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1766</link>
		<dc:creator>K.Bryan</dc:creator>
		<pubDate>Sat, 30 Jul 2011 07:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1766</guid>
		<description>Simple...

Just Make a copy of the page (add the number 1 to the name) that is redirecting them to the iPhone/iPad Version, but just remove the redirection script.

So the Link that takes them back to the &#039;normal&#039; viewing mode is to the page WITHOUT the redirection script, enabling them to view your site &#039;normally&#039;

Try that!</description>
		<content:encoded><![CDATA[<p>Simple&#8230;</p>
<p>Just Make a copy of the page (add the number 1 to the name) that is redirecting them to the iPhone/iPad Version, but just remove the redirection script.</p>
<p>So the Link that takes them back to the &#8216;normal&#8217; viewing mode is to the page WITHOUT the redirection script, enabling them to view your site &#8216;normally&#8217;</p>
<p>Try that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1704</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 20 Jul 2011 15:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1704</guid>
		<description>I think i may write a post about how to do that, check back in  a little bit to see if I have one written. 

Thanks</description>
		<content:encoded><![CDATA[<p>I think i may write a post about how to do that, check back in  a little bit to see if I have one written. </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jalen Rollins</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1700</link>
		<dc:creator>Jalen Rollins</dc:creator>
		<pubDate>Tue, 12 Jul 2011 20:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1700</guid>
		<description>Say I have a redirect on my iPhone or iPad but they do not want to use it?  How can i get them back to the normal web viewing mode? 

Thanks, if you can email me with a reply that would be great! 
jalen949@gmail.com</description>
		<content:encoded><![CDATA[<p>Say I have a redirect on my iPhone or iPad but they do not want to use it?  How can i get them back to the normal web viewing mode? </p>
<p>Thanks, if you can email me with a reply that would be great!<br />
<a href="mailto:jalen949@gmail.com">jalen949@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karim</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1690</link>
		<dc:creator>karim</dc:creator>
		<pubDate>Tue, 31 May 2011 15:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1690</guid>
		<description>Thank you so much this is great!
simple clean and it works!!!
keep it up</description>
		<content:encoded><![CDATA[<p>Thank you so much this is great!<br />
simple clean and it works!!!<br />
keep it up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1685</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Wed, 25 May 2011 12:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1685</guid>
		<description>This method works great - I use it for www.digisolved.com and it works great!</description>
		<content:encoded><![CDATA[<p>This method works great &#8211; I use it for <a href="http://www.digisolved.com" rel="nofollow">http://www.digisolved.com</a> and it works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Harte</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1683</link>
		<dc:creator>Ian Harte</dc:creator>
		<pubDate>Tue, 24 May 2011 12:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1683</guid>
		<description>You legend! Just implemented this on my site! Worked first time! Used it to redirect uses to a site not using flash! Great stuff! Cheers bro!</description>
		<content:encoded><![CDATA[<p>You legend! Just implemented this on my site! Worked first time! Used it to redirect uses to a site not using flash! Great stuff! Cheers bro!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1682</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 23 May 2011 18:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1682</guid>
		<description>Awesome, thank you! Just what I needed!</description>
		<content:encoded><![CDATA[<p>Awesome, thank you! Just what I needed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1667</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 05 May 2011 00:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1667</guid>
		<description>Brilliant! this has helped me loads - thanks for the BlackBerry script too !</description>
		<content:encoded><![CDATA[<p>Brilliant! this has helped me loads &#8211; thanks for the BlackBerry script too !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Shupe</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1663</link>
		<dc:creator>Brian Shupe</dc:creator>
		<pubDate>Mon, 02 May 2011 22:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1663</guid>
		<description>Make sure people clear their cache. took a couple of tries before it worked on my iPad.

Thank you very much for bringing me up to the 21st century on this one.</description>
		<content:encoded><![CDATA[<p>Make sure people clear their cache. took a couple of tries before it worked on my iPad.</p>
<p>Thank you very much for bringing me up to the 21st century on this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jil</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1658</link>
		<dc:creator>Jil</dc:creator>
		<pubDate>Thu, 28 Apr 2011 12:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1658</guid>
		<description>Very nice piece of code. but I have one concern. what about if the person wants to come back to the PC version of the site from his ipad ? it will always send him to the ipad version ? Thank you</description>
		<content:encoded><![CDATA[<p>Very nice piece of code. but I have one concern. what about if the person wants to come back to the PC version of the site from his ipad ? it will always send him to the ipad version ? Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stavros</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1646</link>
		<dc:creator>Stavros</dc:creator>
		<pubDate>Tue, 26 Apr 2011 14:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1646</guid>
		<description>Clean smooth GREAT.
Thank you very much</description>
		<content:encoded><![CDATA[<p>Clean smooth GREAT.<br />
Thank you very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1618</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 20 Apr 2011 19:10:12 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1618</guid>
		<description>Nice one, thanks!</description>
		<content:encoded><![CDATA[<p>Nice one, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agi</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1608</link>
		<dc:creator>Agi</dc:creator>
		<pubDate>Mon, 18 Apr 2011 09:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1608</guid>
		<description>Hi there, GREAT SCRIPT! Exactly what I&#039;m looking for. 
Is it possible to also detect, whether the iPad is in Portrait or Landscape position?</description>
		<content:encoded><![CDATA[<p>Hi there, GREAT SCRIPT! Exactly what I&#8217;m looking for.<br />
Is it possible to also detect, whether the iPad is in Portrait or Landscape position?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1492</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 08 Apr 2011 11:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1492</guid>
		<description>A gazillion &quot;thank you&#039;s&quot;</description>
		<content:encoded><![CDATA[<p>A gazillion &#8220;thank you&#8217;s&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristo</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1414</link>
		<dc:creator>Cristo</dc:creator>
		<pubDate>Fri, 18 Mar 2011 10:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1414</guid>
		<description>Verry nice script. Thx</description>
		<content:encoded><![CDATA[<p>Verry nice script. Thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1279</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 03 Mar 2011 21:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1279</guid>
		<description>Catherine,

I would find the userAgent of the tablet you are trying to redirect for, and j insert some of the part of the useragent text into the part that says &quot;ipad&quot; instead. Hope that helps.</description>
		<content:encoded><![CDATA[<p>Catherine,</p>
<p>I would find the userAgent of the tablet you are trying to redirect for, and j insert some of the part of the useragent text into the part that says &#8220;ipad&#8221; instead. Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1261</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 28 Feb 2011 18:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1261</guid>
		<description>A couple of hundred thanks!</description>
		<content:encoded><![CDATA[<p>A couple of hundred thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1219</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Thu, 17 Feb 2011 04:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1219</guid>
		<description>Thanks for this it worked a treat,cheers.</description>
		<content:encoded><![CDATA[<p>Thanks for this it worked a treat,cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Preston</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1175</link>
		<dc:creator>Preston</dc:creator>
		<pubDate>Mon, 07 Feb 2011 00:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1175</guid>
		<description>I cannot thank you enough for this wondrous piece of code.

I spent more than 8 hours today trying to find a way to trap for iPads so that I could use a separate youtube video embed code...without the autoplay in it (I discovered that if autoplay is set to &#039;1&#039; when the ipad goes to play it, it will not play and no play button will appear). 

Your code allowed me to trap for the ipad and redirect those users to a similar page on my own site, that has the very same youtube code embed, sans the autoplay.

Again, job well done...and thank you!!</description>
		<content:encoded><![CDATA[<p>I cannot thank you enough for this wondrous piece of code.</p>
<p>I spent more than 8 hours today trying to find a way to trap for iPads so that I could use a separate youtube video embed code&#8230;without the autoplay in it (I discovered that if autoplay is set to &#8217;1&#8242; when the ipad goes to play it, it will not play and no play button will appear). </p>
<p>Your code allowed me to trap for the ipad and redirect those users to a similar page on my own site, that has the very same youtube code embed, sans the autoplay.</p>
<p>Again, job well done&#8230;and thank you!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crawpdx</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1171</link>
		<dc:creator>Crawpdx</dc:creator>
		<pubDate>Tue, 25 Jan 2011 19:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1171</guid>
		<description>THANK YOU!</description>
		<content:encoded><![CDATA[<p>THANK YOU!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catherine</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1169</link>
		<dc:creator>Catherine</dc:creator>
		<pubDate>Thu, 20 Jan 2011 00:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1169</guid>
		<description>Hi,

Can you tell me what the code be for users of tablets other than ipads?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can you tell me what the code be for users of tablets other than ipads?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1166</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Wed, 12 Jan 2011 03:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1166</guid>
		<description>Thanks so very much for this. Works perfectly also with blackberries. Thank you!</description>
		<content:encoded><![CDATA[<p>Thanks so very much for this. Works perfectly also with blackberries. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugene Kam</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1165</link>
		<dc:creator>Eugene Kam</dc:creator>
		<pubDate>Tue, 11 Jan 2011 17:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1165</guid>
		<description>THANK YOU! Finally, Ive been  trying to get this working and couldnt find a working code. Thanks again!</description>
		<content:encoded><![CDATA[<p>THANK YOU! Finally, Ive been  trying to get this working and couldnt find a working code. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loba</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1160</link>
		<dc:creator>Loba</dc:creator>
		<pubDate>Sun, 19 Dec 2010 15:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1160</guid>
		<description>Thanks for the code it works marvelously !!!</description>
		<content:encoded><![CDATA[<p>Thanks for the code it works marvelously !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1157</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Sat, 20 Nov 2010 18:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1157</guid>
		<description>This is a great script - extremely simple but very effective!  

I found a few other options but none were as simple as this.  I now have it working for iPad/iPhone/iPod/BlackBerry but not sure if there are other mobile devices that can be added to ensure all bases are covered.  I see Scott says this should work for all android devices but haven&#039;t been able to test aside from those above, has anyone else?

Thanks a lot for sharing!</description>
		<content:encoded><![CDATA[<p>This is a great script &#8211; extremely simple but very effective!  </p>
<p>I found a few other options but none were as simple as this.  I now have it working for iPad/iPhone/iPod/BlackBerry but not sure if there are other mobile devices that can be added to ensure all bases are covered.  I see Scott says this should work for all android devices but haven&#8217;t been able to test aside from those above, has anyone else?</p>
<p>Thanks a lot for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jenn</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1152</link>
		<dc:creator>Jenn</dc:creator>
		<pubDate>Wed, 03 Nov 2010 22:20:20 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1152</guid>
		<description>What a great script! Really simple and elegant... and works like a charm! Thank you very much for sharing this with the community at large.

Any suggestions for screen-reader devices? I&#039;m planning on building a secondary (text-only) site for accessibility purposes, and would love a general redirect for those without flash / images.

Thanks again!</description>
		<content:encoded><![CDATA[<p>What a great script! Really simple and elegant&#8230; and works like a charm! Thank you very much for sharing this with the community at large.</p>
<p>Any suggestions for screen-reader devices? I&#8217;m planning on building a secondary (text-only) site for accessibility purposes, and would love a general redirect for those without flash / images.</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P Santino</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1113</link>
		<dc:creator>P Santino</dc:creator>
		<pubDate>Mon, 11 Oct 2010 13:07:42 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1113</guid>
		<description>Well done, this is a good little script that works and does redirect to another domain.
No more headaches!
Many thanks
Pete</description>
		<content:encoded><![CDATA[<p>Well done, this is a good little script that works and does redirect to another domain.<br />
No more headaches!<br />
Many thanks<br />
Pete</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1102</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 06 Oct 2010 13:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1102</guid>
		<description>Hey Allen, this code below should pick up any android device. If someone wants to test it and let me know that would be great.
&lt;pre lang=&quot;javascript&quot; line=&quot;1&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
	if ( (navigator.userAgent.indexOf(&#039;Android&#039;) != -1)) {
		document.location = &quot;http://www.scottrockers.com/yourwebpage.html&quot;;
	}
&lt;/script&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hey Allen, this code below should pick up any android device. If someone wants to test it and let me know that would be great.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Android'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		document.<span style="color: #660066;">location</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://www.scottrockers.com/yourwebpage.html&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Allen</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1093</link>
		<dc:creator>Allen</dc:creator>
		<pubDate>Tue, 28 Sep 2010 19:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1093</guid>
		<description>Is there anything for the Droid?

Thanks</description>
		<content:encoded><![CDATA[<p>Is there anything for the Droid?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-1085</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 13 Sep 2010 17:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-1085</guid>
		<description>Works great on my Blackberry. I combined all the code for the iPod, iPhone, iPad, and Blackberry, putting the Blackberry redirect code last. I haven&#039;t yet tested it on any Apple devices, as I don&#039;t own any, but I am confident it will work on those as well - since my Blackberry successfully redirected to it (and its browser must have made it past the Apple device redirect code without a hitch).

Anyway, thanks so much for creating and distributing this script!</description>
		<content:encoded><![CDATA[<p>Works great on my Blackberry. I combined all the code for the iPod, iPhone, iPad, and Blackberry, putting the Blackberry redirect code last. I haven&#8217;t yet tested it on any Apple devices, as I don&#8217;t own any, but I am confident it will work on those as well &#8211; since my Blackberry successfully redirected to it (and its browser must have made it past the Apple device redirect code without a hitch).</p>
<p>Anyway, thanks so much for creating and distributing this script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-915</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sun, 01 Aug 2010 15:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-915</guid>
		<description>Although I said it doesn&#039;t work, does not mean that the code is incorrect.  I just realized that the phone I tested with does not have JavaScript enabled, so it obviously would not redirect. Sorry about that ADMIN! The script does look good and does work for iphone/pad.</description>
		<content:encoded><![CDATA[<p>Although I said it doesn&#8217;t work, does not mean that the code is incorrect.  I just realized that the phone I tested with does not have JavaScript enabled, so it obviously would not redirect. Sorry about that ADMIN! The script does look good and does work for iphone/pad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-914</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sun, 01 Aug 2010 14:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-914</guid>
		<description>I was just testing the BlackBerry script and could not get it to work.</description>
		<content:encoded><![CDATA[<p>I was just testing the BlackBerry script and could not get it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amelia</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-864</link>
		<dc:creator>amelia</dc:creator>
		<pubDate>Sat, 24 Jul 2010 18:56:18 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-864</guid>
		<description>worked like a charm for both the iPad and iPhone.  thank you!</description>
		<content:encoded><![CDATA[<p>worked like a charm for both the iPad and iPhone.  thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-829</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 19 Jul 2010 20:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-829</guid>
		<description>I think so, Estaban tried it and he said it works. Please let me know if it doesn&#039;t. 

Thanks
Scott</description>
		<content:encoded><![CDATA[<p>I think so, Estaban tried it and he said it works. Please let me know if it doesn&#8217;t. </p>
<p>Thanks<br />
Scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crumpy</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-828</link>
		<dc:creator>crumpy</dc:creator>
		<pubDate>Mon, 19 Jul 2010 19:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-828</guid>
		<description>Thank you for these scripts. very helpful.</description>
		<content:encoded><![CDATA[<p>Thank you for these scripts. very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sofiane</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-752</link>
		<dc:creator>sofiane</dc:creator>
		<pubDate>Fri, 09 Jul 2010 23:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-752</guid>
		<description>the script for blackberry works ??</description>
		<content:encoded><![CDATA[<p>the script for blackberry works ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Esteban</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-728</link>
		<dc:creator>Esteban</dc:creator>
		<pubDate>Tue, 06 Jul 2010 02:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-728</guid>
		<description>Hi there, i tried the blackberry code and it works perfect !!! it´s definetely a good tip!! i just was wondering, if i want to have a web version for iphone, another one for blackberry, etc ... do i have to copy in a row both textis (for example first the code for the iphone recognition followed by the blackberry code??????) thanks a lot.</description>
		<content:encoded><![CDATA[<p>Hi there, i tried the blackberry code and it works perfect !!! it´s definetely a good tip!! i just was wondering, if i want to have a web version for iphone, another one for blackberry, etc &#8230; do i have to copy in a row both textis (for example first the code for the iphone recognition followed by the blackberry code??????) thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-707</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Thu, 01 Jul 2010 18:16:41 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-707</guid>
		<description>Michael, have you tried using the HTML5  method? This may work.</description>
		<content:encoded><![CDATA[<p>Michael, have you tried using the HTML5  method? This may work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-646</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 07 Jun 2010 21:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-646</guid>
		<description>Not sure Michael, sorry.</description>
		<content:encoded><![CDATA[<p>Not sure Michael, sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MIchael</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-607</link>
		<dc:creator>MIchael</dc:creator>
		<pubDate>Sat, 29 May 2010 22:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-607</guid>
		<description>Great script, thanks!  Side question: do you know how, on the iphone, to prevent an embedded QT (.mp4) file from automatically opening up full screen and, instead, playing within the webpage itself?</description>
		<content:encoded><![CDATA[<p>Great script, thanks!  Side question: do you know how, on the iphone, to prevent an embedded QT (.mp4) file from automatically opening up full screen and, instead, playing within the webpage itself?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-555</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 17 May 2010 13:56:19 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-555</guid>
		<description>I rechecked the useragent and it should be right. I changed the blackberry to BlackBerry, could someone check my changes and see if this script works for the blackberry.

Thanks
Scott</description>
		<content:encoded><![CDATA[<p>I rechecked the useragent and it should be right. I changed the blackberry to BlackBerry, could someone check my changes and see if this script works for the blackberry.</p>
<p>Thanks<br />
Scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-550</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Sun, 16 May 2010 18:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-550</guid>
		<description>From what I can tell, the script for the Blackberry does not redirect.</description>
		<content:encoded><![CDATA[<p>From what I can tell, the script for the Blackberry does not redirect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-540</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 14 May 2010 21:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-540</guid>
		<description>I looked up the userAgent of the BlackBerry, so I think you can use this code. Could you test it out and let me know and leave a reply on this comment that would be great.

&lt;pre lang=&quot;javascript&quot; line=&quot;1&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
	if ((navigator.userAgent.indexOf(&#039;BlackBerry&#039;) != -1)  ) {
		document.location = &quot;http://www.yourwebsitename.com/yourwebpagename.html&quot;;
	}
&lt;/script&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I looked up the userAgent of the BlackBerry, so I think you can use this code. Could you test it out and let me know and leave a reply on this comment that would be great.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'BlackBerry'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>  <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		document.<span style="color: #660066;">location</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://www.yourwebsitename.com/yourwebpagename.html&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Stipko</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-521</link>
		<dc:creator>Stipko</dc:creator>
		<pubDate>Mon, 10 May 2010 20:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-521</guid>
		<description>Is there a way to sneak in a blackberry redirect to the same script? 

Thanks by the way. This works perfectly on ipod, ipad and iphone for me.</description>
		<content:encoded><![CDATA[<p>Is there a way to sneak in a blackberry redirect to the same script? </p>
<p>Thanks by the way. This works perfectly on ipod, ipad and iphone for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-541</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 07 May 2010 21:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-541</guid>
		<description>Hey Jason,

Here is the code for just ipods and iphones.

&lt;pre lang=&quot;javascript&quot; line=&quot;1&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
	if ((navigator.userAgent.indexOf(&#039;iPhone&#039;) != -1) &#124;&#124; (navigator.userAgent.indexOf(&#039;iPod&#039;) != -1)) {
		document.location = &quot;http://www.scottrockers.com/iphone.html&quot;;
	}
&lt;/script&gt;
&lt;/pre&gt;

And here is just for the ipad.
&lt;pre lang=&quot;javascript&quot; line=&quot;1&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
	if ( (navigator.userAgent.indexOf(&#039;iPad&#039;) != -1)) {
		document.location = &quot;http://www.scottrockers.com/iphone.html&quot;;
	}
&lt;/script&gt;
&lt;/pre&gt;

Scott</description>
		<content:encoded><![CDATA[<p>Hey Jason,</p>
<p>Here is the code for just ipods and iphones.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'iPhone'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'iPod'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		document.<span style="color: #660066;">location</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://www.scottrockers.com/iphone.html&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>And here is just for the ipad.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'iPad'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		document.<span style="color: #660066;">location</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://www.scottrockers.com/iphone.html&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-512</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 06 May 2010 22:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-512</guid>
		<description>Thanks for this code!  Is it possible to redirect ipods/iphones to one site while redirecting the ipad to another site?  Thanks in advance...</description>
		<content:encoded><![CDATA[<p>Thanks for this code!  Is it possible to redirect ipods/iphones to one site while redirecting the ipad to another site?  Thanks in advance&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Kellogg</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-416</link>
		<dc:creator>Brian Kellogg</dc:creator>
		<pubDate>Fri, 16 Apr 2010 14:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-416</guid>
		<description>Hi Scott,
The updated code works great. I just tested it on the iPad. Thanks again for helping me out.</description>
		<content:encoded><![CDATA[<p>Hi Scott,<br />
The updated code works great. I just tested it on the iPad. Thanks again for helping me out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-380</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 06 Apr 2010 18:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-380</guid>
		<description>Thanks Dave, much appreciated.</description>
		<content:encoded><![CDATA[<p>Thanks Dave, much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-379</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 06 Apr 2010 17:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-379</guid>
		<description>I tested this script on an ipad and worked smoothly.

Scenerio: I have a website for web(PC) and a redirect for mobile: Iphones, blackberries etc. I found my redirect for iphone and ipod touch was also redirecting for the ipad. I did NOT want IPAD users to be redirected so I used the above script to detect ipad users and NOT redirect to the mobile site. It works well.

The script above is indeed good!.

Thanks,
David Morgan
Web Developer</description>
		<content:encoded><![CDATA[<p>I tested this script on an ipad and worked smoothly.</p>
<p>Scenerio: I have a website for web(PC) and a redirect for mobile: Iphones, blackberries etc. I found my redirect for iphone and ipod touch was also redirecting for the ipad. I did NOT want IPAD users to be redirected so I used the above script to detect ipad users and NOT redirect to the mobile site. It works well.</p>
<p>The script above is indeed good!.</p>
<p>Thanks,<br />
David Morgan<br />
Web Developer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-370</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 05 Apr 2010 20:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-370</guid>
		<description>Hey Brian, 

I went on a search to check to make sure this script was working and found out some things. The userAgent of the iPad is: &quot;Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10&quot;

So the code should be working because it contains the words iPad in it. If anyone can actually test this out on the actual iPad, and not in the Apple Store, then please let me know and I will post a correction. Brian, I did update the code just to make sure, so please try it again.

Thanks,
Scott</description>
		<content:encoded><![CDATA[<p>Hey Brian, </p>
<p>I went on a search to check to make sure this script was working and found out some things. The userAgent of the iPad is: &#8220;Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10&#8243;</p>
<p>So the code should be working because it contains the words iPad in it. If anyone can actually test this out on the actual iPad, and not in the Apple Store, then please let me know and I will post a correction. Brian, I did update the code just to make sure, so please try it again.</p>
<p>Thanks,<br />
Scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-369</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Mon, 05 Apr 2010 19:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-369</guid>
		<description>Update: This Code works great, thanks Scott.

This code does not work on the iPad. I just tested redirect with my website www.briankellogg.com in the Apple store and it does not work. The code still works for the iPhone. If someone does figure out a better code please post it here.</description>
		<content:encoded><![CDATA[<p>Update: This Code works great, thanks Scott.</p>
<p>This code does not work on the iPad. I just tested redirect with my website <a href="http://www.briankellogg.com" rel="nofollow">http://www.briankellogg.com</a> in the Apple store and it does not work. The code still works for the iPhone. If someone does figure out a better code please post it here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-279</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 11 Mar 2010 14:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-279</guid>
		<description>Hey Rod, The iPad redirection code is the exact same as a iphone or iPod redirection code, but it has another argument added to it that looks for &quot;iPad&quot; in the userAgent of the browser as well. The extra argument in the if statement looks like this &quot;&#124;&#124; (navigator.userAgent.indexOf(&#039;iPad&#039;) != -1)&quot;</description>
		<content:encoded><![CDATA[<p>Hey Rod, The iPad redirection code is the exact same as a iphone or iPod redirection code, but it has another argument added to it that looks for &#8220;iPad&#8221; in the userAgent of the browser as well. The extra argument in the if statement looks like this &#8220;|| (navigator.userAgent.indexOf(&#8216;iPad&#8217;) != -1)&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rod Pascoe</title>
		<link>http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website/comment-page-1#comment-278</link>
		<dc:creator>Rod Pascoe</dc:creator>
		<pubDate>Wed, 10 Mar 2010 22:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://scottrockers.com/blog/?p=868#comment-278</guid>
		<description>Should the line containing &quot;navigator.userAgent.indexOf(&#039;iPod&#039;)&quot; read &quot;navigator.userAgent.indexOf(&#039;iPad&#039;)&quot; ???

iPad not iPod as it were.

Rod</description>
		<content:encoded><![CDATA[<p>Should the line containing &#8220;navigator.userAgent.indexOf(&#8216;iPod&#8217;)&#8221; read &#8220;navigator.userAgent.indexOf(&#8216;iPad&#8217;)&#8221; ???</p>
<p>iPad not iPod as it were.</p>
<p>Rod</p>
]]></content:encoded>
	</item>
</channel>
</rss>

