Is there a way to detect all browsers but IE for a redirect with either HTAccess or Javascript? Something like if not IE, redirect to site.com?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would suggest using IE’s conditional comments rather since that would mean that the redirect code will not be even interpreted by IE. i.e. IE wont have run the JS code at all, only other browsers will.
Redirection using JS
Redirection using meta refresh
Technique for not showing the page before redirection
You can do this by rendering the
<body>tag conditionally. Disclaimer: haven’t tested this.For more info on conditional comments: http://www.quirksmode.org/css/condcom.html