I'm looking for a php script to redirect IE users to one URL and other browsers to another URL. I found this script, but doesn't seem to be working for IE8.
Code:
<?php
//if its MSIE then
if
(
$name
= strstr
(
$HTTP_USER_AGENT
, "MSIE"
)
)
{
//it will send to www.tutorialize.org/redirect1
Header
(
"Location: http://www.google.com"
)
;
}
else
{
//else will send to www.tutorialize.org/redirect2
Header
(
"Location: http://www.yahoo.com/"
)
;
}
?>