<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1020494" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1020494</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/browser-detect-redirect#comment-1126107</link>
    <description> &lt;p&gt;I&#039;m so excited to actually be able to answer a question!  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;   I&#039;m always the one asking questions around here and it feels nice to be able to help somebody else.  Anyway, here&#039;s the script I use to do exactly what you&#039;re asking for (even though it seems you may not need it anymore).  &lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//DETECT BROWSER&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{ global &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_USER_AGENT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;strstr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_USER_AGENT&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;MSIE 6\&quot;)) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;Microsoft Internet Explorer 6\&quot;;} // MSIE6&lt;br /&gt;else if(strstr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_USER_AGENT&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;MSIE 5\&quot;)){&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;Microsoft Internet Explorer 5\&quot;;} // MSIE5&lt;br /&gt;else if(strstr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_USER_AGENT&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;MSIE 4\&quot;)){&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;Microsoft Internet Explorer 4\&quot;;} // MSIE4&lt;br /&gt;else if(strstr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_USER_AGENT&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;Netscape6\&quot;)){&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;Netscape Navigator 6\&quot;;} // NS6&lt;br /&gt;else if(strstr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_USER_AGENT&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;Mozilla/4\&quot;)){&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;Netscape Navigator 4\&quot;;} // NS4&lt;br /&gt;else if(strstr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_USER_AGENT&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;Mozilla/5\&quot;)){&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;Mozilla\&quot;;} // Mozilla&lt;br /&gt;else if(strstr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_USER_AGENT&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;Opera/6\&quot;)){&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;Opera\&quot;;} // Opera&lt;br /&gt;else {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;an unknown browser\&quot;;} // Unknown&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;print \&quot;You&#039;re Using \&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;.\n\&quot;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt; &lt;/p&gt;
&lt;p&gt;:jump:&lt;/p&gt;
 </description>
     <pubDate>Tue, 25 Feb 2003 18:10:25 +0000</pubDate>
 <dc:creator>fifeclub</dc:creator>
 <guid isPermaLink="false">comment 1126107 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/browser-detect-redirect#comment-1125739</link>
    <description> &lt;p&gt;Sorry. All you do is copy paste that code into your php document.  Then use if/else statements to redirect the url:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;==\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;msie\&quot;) { &lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;ie_page.php\&quot;; // Internet explorer&lt;br /&gt;{ elseif(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==\&quot;ns\&quot;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;ns_page.php\&quot;; // Netscape&lt;br /&gt;} else {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;other_page.php\&quot;; // Everything else&lt;br /&gt;}&lt;br /&gt;header(&#039;Location:&#039; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;You can also check it by using the (integer) variable called $version to redirect using the version or use $os to redirect according to the operating system.&lt;/p&gt;
&lt;p&gt;P.S. This way is not fooled by Opera browser spoofing so if you want to detect opera simply use $browser == &quot;opera&quot;&lt;/p&gt;
&lt;p&gt;-dk&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Feb 2003 23:24:38 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1125739 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/browser-detect-redirect#comment-1125637</link>
    <description> &lt;p&gt;I don&#039;t get it. Where in that code do we imput the redirect url&#039;s?&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Feb 2003 20:24:00 +0000</pubDate>
 <dc:creator>mojojojo</dc:creator>
 <guid isPermaLink="false">comment 1125637 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/browser-detect-redirect#comment-1125484</link>
    <description> &lt;p&gt;If you want one still then here is one:&lt;br /&gt;
&lt;a href=&quot;http://www.conxiondesigns.com/source/?/cfg/apps/sniffer.php&quot; class=&quot;bb-url&quot;&gt;http://www.conxiondesigns.com/source/?/cfg/apps/sniffer.php&lt;/a&gt;&lt;br /&gt;
-dk&lt;/p&gt;
 </description>
     <pubDate>Sun, 16 Feb 2003 15:05:22 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1125484 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/browser-detect-redirect#comment-1125481</link>
    <description> &lt;p&gt;it was, cheers&lt;/p&gt;
 </description>
     <pubDate>Sun, 16 Feb 2003 09:55:57 +0000</pubDate>
 <dc:creator>Khanny</dc:creator>
 <guid isPermaLink="false">comment 1125481 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/browser-detect-redirect#comment-1125470</link>
    <description> &lt;p&gt;just make sure Opera isnt set as IE (f12 at bottom - set as opera)&lt;/p&gt;
 </description>
     <pubDate>Sun, 16 Feb 2003 07:19:28 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1125470 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/browser-detect-redirect#comment-1125468</link>
    <description> &lt;p&gt;hmm wait never mind it seems to work in Opera now.&lt;/p&gt;
 </description>
     <pubDate>Sun, 16 Feb 2003 05:20:12 +0000</pubDate>
 <dc:creator>Khanny</dc:creator>
 <guid isPermaLink="false">comment 1125468 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/browser-detect-redirect#comment-1125467</link>
    <description> &lt;p&gt;yup definitely do, got a menu that doesn&#039;t work in Opera&lt;/p&gt;
 </description>
     <pubDate>Sun, 16 Feb 2003 05:13:04 +0000</pubDate>
 <dc:creator>Khanny</dc:creator>
 <guid isPermaLink="false">comment 1125467 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/browser-detect-redirect#comment-1125466</link>
    <description> &lt;p&gt;What you *really* need to do is re-evaluate whether you really need to redirect to various browsers.&lt;/p&gt;
 </description>
     <pubDate>Sun, 16 Feb 2003 05:12:04 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1125466 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
