im trying to redirect users to another page if they are using internet explorer but this code doen't redirect them it loads the page up as normal on i.e.
I have tried different variations of MSIE but nothing seems to work
session_start();
if (strpos($_SERVER['HTTP_USER_AGENT'], '/MSIE/i') !== false){
header('Location: /ie.php');
die();
}else{
echo "User Agent not recognised.";
}
any one have any ideas?