Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Redirect if IE?

  1. #1
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question Redirect if IE?

    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;
    PHP Code:
    <!--[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?

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Code:
    <!--[if IE]>
    or

    Code:
    <!--[if lte IE 7]>
    or
    Code:
    <!--[if gte IE 5]>
    Or any combo you can think of that is valid: as seen here
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. The Following User Says Thank You to BLiZZaRD For This Useful Post:

    Moglizorz (09-03-2008)

  4. #3
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Heheh, you again :P
    In my previous topic history, like everything is replied by you

    So, if I do an "if IE" statement, all IE browsers will be redirected?

  5. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    That's the idea.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  6. #5
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Awesome, works perfectly. Thanks again.

    We shall meet again soon-enough. I'm building my new website :P

  7. #6
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    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.

  8. #7
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by boogyman View Post
    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.

  9. #8
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    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.

  10. #9
    Join Date
    Oct 2006
    Posts
    183
    Thanks
    0
    Thanked 11 Times in 11 Posts

    Default

    my idea:

    Code:
    <!--[if IE 6]> 
      <meta http-equiv="refresh" content="0;http://www.mysite.com/iesucks/"> 
    <![endif]-->
    iesucks index:
    Code:
    im surprised you can see this since IE SUCKS! get firefox :)

  11. #10
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Love it
    That is totally the sex.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •