I am implementing a website with WordPress, but my website is not supported in Internet Explorer 8.
Is there any code I can use so that any IE8 users will be redirected to another page?
I am implementing a website with WordPress, but my website is not supported in Internet Explorer 8.
Is there any code I can use so that any IE8 users will be redirected to another page?
You must be logged in to post a comment.
I know you specified PHP, but here’s a HTML/JS solution:
Taken from this answer.
If you specifically only want to redirect IE 8 users, change
<!--[if IE]>
to<!--[if IE 8]>
.Yes, in PHP you can use
$_SERVER['HTTP_USER_AGENT']
to detect the browser and redirect accordingly.In javascript you can you
navigator.userAgent
to apply the same thing.