yeah you could it with javascript as well.
this is pulled from w3schools.com
<html>
<head>
<script type="text/javascript">
function redirectme()
{
bname=navigator.appName
if (bname.indexOf("Netscape")!=-1)
{
window.location="tryjs_netscape.htm"
return
}
if (bname.indexOf("Microsoft")!=-1)
{
window.location="tryjs_microsoft.htm"
return
}
window.location="tryjs_other.htm"
}
</script>
</head>
<body onload="redirectme()">
</body>
</html>
if you want to do it with php then you will have to put the code at the very top of the page before you output any other code.
<?php
if (strstr($_SERVER['HTTP_USER_AGENT'], "Microsoft")) {
header("Location: iepage.php");
} elseif (strstr($_SERVER['HTTP_USER_AGENT'], "Netscape")) {
header("Location: netscape.php");
} else {
header("Location: other.php");
}
?>