//IE Redirect
$ua = $_SERVER['HTTP_USER_AGENT'];
if (strpos($ua,'MSIE') != false && strpos($ua,'Opera') === false)
{
if (substr($ua,strpos($ua,'MSIE')+5,1) < 7)
{
if ($_SERVER['HTTP_HOST'] == 'mccn.edu') {
header('Location:http://www.mccn.edu');
}
}
}
RewriteCond %{HTTP_HOST} !^www.mccn.edu$ [NC]
RewriteRule (.*) http://www.mccn.edu/$1 [R=301,L]
//IE Redirect
$ua = $_SERVER['HTTP_USER_AGENT'];
if (strpos($ua,'MSIE') != false && strpos($ua,'Opera') === false)
{
if (substr($ua,strpos($ua,'MSIE')+5,1) < 7)
{
if ($_SERVER['HTTP_HOST'] == 'mccn.edu') {
header('Location:http://www.mccn.edu');
}
}
}
RewriteCond %{HTTP_HOST} !^www.mccn.edu$ [NC]
RewriteRule (.*) http://www.mccn.edu/$1 [R=301,L]
Time to create page: 0.074 seconds