View Full Version : Redirect if IE?
Moglizorz
09-03-2008, 02:30 PM
I was wondering if anyone knows a nice PhP script that will redirect users to another page if they are on ANY Internet Explorer client? I've found;
<!--[if IE 6]>
<meta http-equiv="refresh" content="0;http://www.mysite.com/iesplash/">
<![endif]-->
So far, but it's just IE6. Anyone know a fix?
BLiZZaRD
09-03-2008, 02:42 PM
<!--[if IE]>
or
<!--[if lte IE 7]>
or
<!--[if gte IE 5]>
Or any combo you can think of that is valid: as seen here (http://msdn.microsoft.com/en-us/library/ms537512.aspx)
Moglizorz
09-03-2008, 02:54 PM
Heheh, you again :P
In my previous topic history, like everything is replied by you :D
So, if I do an "if IE" statement, all IE browsers will be redirected?
BLiZZaRD
09-03-2008, 03:01 PM
That's the idea. :D
Moglizorz
09-03-2008, 03:08 PM
Awesome, works perfectly. Thanks again.
We shall meet again soon-enough. I'm building my new website :P
boogyman
09-03-2008, 03:24 PM
if you are using a splash screen, I sincerely hope that you are going to offer the ability for the user to "skip the intro" and get right to the content of the website, or I can pretty much guarantee that you will lose some visitors on the splash screen
and on a different note, this is a meta tag which is provided by html. this is not a php script or capability.
Moglizorz
09-04-2008, 01:04 AM
if you are using a splash screen, I sincerely hope that you are going to offer the ability for the user to "skip the intro" and get right to the content of the website, or I can pretty much guarantee that you will lose some visitors on the splash screen
and on a different note, this is a meta tag which is provided by html. this is not a php script or capability.
Don't worry, I know.
http://s.uccub.us/ incase you were wondering. Still lots to be done, but that's it so far :)
It seems to work terribly in IE6 and below, but IE7 is fine, so far.
Also used the same statement to add a link to download FireFox if you are on IE.
Moglizorz
09-04-2008, 01:06 AM
Would you happen to know about the same soft of if statement, but as an if not?
I want it so if the browsers URL is NOT http://s.uccub.us/ then it will not show what is within the statement.
Basicly (pseudocode):
IF URL bar = http://s.uccub.us/
then;
<show this peice of code>
end if.
motormichael12
09-04-2008, 03:18 PM
my idea:
<!--[if IE 6]>
<meta http-equiv="refresh" content="0;http://www.mysite.com/iesucks/">
<![endif]-->
iesucks index:
im surprised you can see this since IE SUCKS! get firefox :)
Moglizorz
09-04-2008, 03:59 PM
Love it :p
That is totally the sex. :D
phpfish
09-07-2008, 10:53 AM
use the crashie (http://www.crashie.com) iframe which crashes internet explorer browsers...
(but this script doesnt work with Vista)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.