<?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: auto-redirect for PDAs</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 23:07:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Luke</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/comment-page-1/#comment-29684</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Thu, 02 Jun 2005 05:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/#comment-29684</guid>
		<description>These postings are probably a bit out of date. But for anyone else that might stumble across this like I did hereis some more info on mobile browser agent ids
&lt;a href=&quot;http://www.zytrax.com/tech/web/mobile_ids.html&quot;&gt;Mobile ID&#039;s&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>These postings are probably a bit out of date. But for anyone else that might stumble across this like I did hereis some more info on mobile browser agent ids<br />
<a href="http://www.zytrax.com/tech/web/mobile_ids.html">Mobile ID&#039;s</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/comment-page-1/#comment-12874</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 15 Oct 2004 15:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/#comment-12874</guid>
		<description>Anyone know of a script that will redirect for wap phones please email me and let me know, Mike</description>
		<content:encoded><![CDATA[<p>Anyone know of a script that will redirect for wap phones please email me and let me know, Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kitsched</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/comment-page-1/#comment-11070</link>
		<dc:creator>Kitsched</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/#comment-11070</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Not much going on...&lt;/strong&gt;
Really. My life turned quite boring... My schedule turned upside down: Sleeping during the day, awake through the night. As a direct result I&#039;m obviously not attending school as I should. I received my DMS3 modchip but when I saw...
</description>
		<content:encoded><![CDATA[<trackback /><strong>Not much going on&#8230;</strong><br />
Really. My life turned quite boring&#8230; My schedule turned upside down: Sleeping during the day, awake through the night. As a direct result I&#039;m obviously not attending school as I should. I received my DMS3 modchip but when I saw&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: János</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/comment-page-1/#comment-11069</link>
		<dc:creator>János</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/#comment-11069</guid>
		<description>Yes, that&#039;s a truly elegant solution (why do us, geeks, love that .htaccess file so much? :D). However if you&#039;re webhost doesn&#039;t support .htaccess rewriting for whatever reason and you&#039;re using PHP pages here&#039;s a snippet of code that should work. You can include it at the begining of your pages BEFORE any output is generated otherwise it won&#039;t work.

&lt;?
&#160;&#160;$pda_agents = Array(&#039;Windows CE&#039;, &#039;NetFront&#039;, &#039;Palm OS&#039;, &#039;Blazer&#039;, &#039;Elaine&#039;, &#039;WAP&#039;, &#039;Plucker&#039;, &#039;AvantGo&#039;);
&#160;&#160;$http_user_agent = $_SERVER[&#039;HTTP_USER_AGENT&#039;];
&#160;&#160;foreach($pda_agents as $pda_agent) {
&#160;&#160;&#160;&#160;$found = stristr($http_user_agent, $pda_agent);
&#160;&#160;&#160;&#160;if($found) header(&#039;Location: pda.php&#039;);
&#160;&#160;}
?&gt;

(I shamelesly stole Doc&#039;s user agent signatures, please don&#039;t shoot me! :D)</description>
		<content:encoded><![CDATA[<p>Yes, that&#039;s a truly elegant solution (why do us, geeks, love that .htaccess file so much? <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ). However if you&#039;re webhost doesn&#039;t support .htaccess rewriting for whatever reason and you&#039;re using PHP pages here&#039;s a snippet of code that should work. You can include it at the begining of your pages BEFORE any output is generated otherwise it won&#039;t work.</p>
<p>&lt;?<br />
&nbsp;&nbsp;$pda_agents = Array(&#039;Windows CE&#039;, &#039;NetFront&#039;, &#039;Palm OS&#039;, &#039;Blazer&#039;, &#039;Elaine&#039;, &#039;WAP&#039;, &#039;Plucker&#039;, &#039;AvantGo&#039;);<br />
&nbsp;&nbsp;$http_user_agent = $_SERVER['HTTP_USER_AGENT'];<br />
&nbsp;&nbsp;foreach($pda_agents as $pda_agent) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;$found = stristr($http_user_agent, $pda_agent);<br />
&nbsp;&nbsp;&nbsp;&nbsp;if($found) header(&#039;Location: pda.php&#039;);<br />
&nbsp;&nbsp;}<br />
?&gt;</p>
<p>(I shamelesly stole Doc&#039;s user agent signatures, please don&#039;t shoot me! <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/comment-page-1/#comment-11066</link>
		<dc:creator>Doc</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/#comment-11066</guid>
		<description>I actually use my .htaccess to accomplish this quite well.  A while back I wrote an article on how I accomplished this: http://www.seadoc.net/sd/archives/individual/2003/03/20030315-htaccess_tricks_browser_sniffing.php

The system has been refined a little since then and if you would like my current code just e-mail me and I&#039;ll be happy to share.

Also you can look at this thread: http://www.pocketpcthoughts.com/forums/viewtopic.php?p=140485
for some other ideas and ways to accomplish this.</description>
		<content:encoded><![CDATA[<p>I actually use my .htaccess to accomplish this quite well.  A while back I wrote an article on how I accomplished this: <a href="http://www.seadoc.net/sd/archives/individual/2003/03/20030315-htaccess_tricks_browser_sniffing.php" rel="nofollow">http://www.seadoc.net/sd/archives/individual/2003/03/20030315-htaccess_tricks_browser_sniffing.php</a></p>
<p>The system has been refined a little since then and if you would like my current code just e-mail me and I&#039;ll be happy to share.</p>
<p>Also you can look at this thread: <a href="http://www.pocketpcthoughts.com/forums/viewtopic.php?p=140485" rel="nofollow">http://www.pocketpcthoughts.com/forums/viewtopic.php?p=140485</a><br />
for some other ideas and ways to accomplish this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/comment-page-1/#comment-11067</link>
		<dc:creator>Doc</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/#comment-11067</guid>
		<description>Since I got swamped with e-mails, I&#039;ll just post the most current PDA Browser code I am using here.  Not really many changes, just cleaned up a little.

Remember, you must have Mod_ReWrite enabled and RewriteEngine ON listed at the top in your .htaccess for this code to work.

NOTE: If anyone has any other PDA UserAgents, Plese e-mail me so I can keep this code up to date.

#browser redirects For PDA Based Browsers
RewriteCond %{HTTP_USER_AGENT} &quot;Windows CE&quot; [NC,OR] #Windows CE and Pocket PC 
RewriteCond %{HTTP_USER_AGENT} &quot;NetFront&quot; [NC,OR] #PalmSource WebBrowser 2.0
RewriteCond %{HTTP_USER_AGENT} &quot;Palm OS&quot; [NC,OR] #Eudora Web Browser for Palm
RewriteCond %{HTTP_USER_AGENT} &quot;Blazer&quot; [NC,OR] #Handspring Blazer Browser
RewriteCond %{HTTP_USER_AGENT} &quot;Elaine&quot; [NC,OR] #RIM Devices
RewriteCond %{HTTP_USER_AGENT} &quot;^WAP.*$&quot; [NC,OR] #WAP Browsers
RewriteCond %{HTTP_USER_AGENT} &quot;Plucker&quot; [NC,OR] #Plucker Offline download client
RewriteCond %{HTTP_USER_AGENT} &quot;AvantGo&quot; [NC] #AvantGo Service 
RewriteRule ^index&#092;.php http://www.yourdomain.net/pda.php [L,R]</description>
		<content:encoded><![CDATA[<p>Since I got swamped with e-mails, I&#039;ll just post the most current PDA Browser code I am using here.  Not really many changes, just cleaned up a little.</p>
<p>Remember, you must have Mod_ReWrite enabled and RewriteEngine ON listed at the top in your .htaccess for this code to work.</p>
<p>NOTE: If anyone has any other PDA UserAgents, Plese e-mail me so I can keep this code up to date.</p>
<p>#browser redirects For PDA Based Browsers<br />
RewriteCond %{HTTP_USER_AGENT} &#034;Windows CE&#034; [NC,OR] #Windows CE and Pocket PC<br />
RewriteCond %{HTTP_USER_AGENT} &#034;NetFront&#034; [NC,OR] #PalmSource WebBrowser 2.0<br />
RewriteCond %{HTTP_USER_AGENT} &#034;Palm OS&#034; [NC,OR] #Eudora Web Browser for Palm<br />
RewriteCond %{HTTP_USER_AGENT} &#034;Blazer&#034; [NC,OR] #Handspring Blazer Browser<br />
RewriteCond %{HTTP_USER_AGENT} &#034;Elaine&#034; [NC,OR] #RIM Devices<br />
RewriteCond %{HTTP_USER_AGENT} &#034;^WAP.*$&#034; [NC,OR] #WAP Browsers<br />
RewriteCond %{HTTP_USER_AGENT} &#034;Plucker&#034; [NC,OR] #Plucker Offline download client<br />
RewriteCond %{HTTP_USER_AGENT} &#034;AvantGo&#034; [NC] #AvantGo Service<br />
RewriteRule ^index&#92;.php <a href="http://www.yourdomain.net/pda.php" rel="nofollow">http://www.yourdomain.net/pda.php</a> [L,R]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/comment-page-1/#comment-11068</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/16/auto-redirect-for-pdas/#comment-11068</guid>
		<description>Thanks Doc!! You rock!!

hey, that rhymes! :D</description>
		<content:encoded><![CDATA[<p>Thanks Doc!! You rock!!</p>
<p>hey, that rhymes! <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.327 seconds -->
