-
-
Save 0xnbk/583663 to your computer and use it in GitHub Desktop.
Redirect To Page On Your Site, if browser is IE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//if the browser is Microsoft IE | |
//if (ereg('MSIE 6',$_SERVER['HTTP_USER_AGENT'])) { | |
if (strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) { | |
//if (ereg('MSIE 6',$_SERVER['HTTP_USER_AGENT'])) | |
header("Location: your_error_page.php") | |
}?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP snippet to detect if the browser is IE, and redirect to a destination page. Uncomment line 4 to detect JUST IE 6.