+ Reply to Thread
Results 1 to 5 of 5

Thread: If IE Redirect

  1. #1
    jmixmaster29's Avatar
    jmixmaster29 is offline x10Hosting Member jmixmaster29 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    29

    If IE Redirect

    Some of my elements on my site don't with with IE8 and below, so I was wondering if you could do this. I would want it to redirect the page to an "/outdated.html" page that would give links for them to upgrade. After a little bit of research, I found this:

    HTML Code:
    <!--[if IE 6]> 
      <meta http-equiv="refresh" content="0;http://www.mysite.com/outdated.html"> 
    <![endif]-->
    But according to some replies to where I found that, I would want:

    HTML Code:
    <!--[if lte IE 8]> 
      <meta http-equiv="refresh" content="0;http://www.mysite.com/outdated.html"> 
    <![endif]-->
    So would this work?
    Last edited by jmixmaster29; 03-30-2011 at 09:28 PM.

  2. #2
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: If IE Redirect

    I think it would (not 100% sure, I dunno how the IF stuff works in html); I do see what the difference is between the two though. The difference is the first one looks to be for IE6 only, the second should be for IE 8 (and I'm guessing the "lte" means "earlier"), which is closer to what you want.

    The easy way is to try it and see - if it doesn't redirect, it's not quite right. If it redirects IE8 but not IE7, it's not quite right
    Last edited by Livewire; 03-30-2011 at 09:40 PM.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  3. #3
    gomarc's Avatar
    gomarc is offline x10 Elder gomarc is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    USA
    Posts
    511

    Re: If IE Redirect

    Hello jmixmaster29,

    Of course, Livewire is correct!

    Your first code [if IE 6] means [if IE is version 6]

    The second one [if lte IE 8] means [if IE version is less-than-or-equal to 8]

    You can find a good explanation and examples here: http://msdn.microsoft.com/en-us/library/cc817577.aspx

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: If IE Redirect

    Note that beyond simply redirecting, you can use conditional comments to create content or styling that applies only to some versions of IE.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  5. #5
    nvnbruno83 is offline x10Hosting Member nvnbruno83 is an unknown quantity at this point
    Join Date
    Oct 2010
    Posts
    6

    Re: If IE Redirect

    If you use the Script in PHP to do this redirect

+ Reply to Thread

Similar Threads

  1. redirect
    By graph.man2923 in forum Free Hosting
    Replies: 3
    Last Post: 09-19-2010, 06:09 AM
  2. what is my redirect?
    By stevenmarch in forum Free Hosting
    Replies: 21
    Last Post: 12-16-2009, 04:39 PM
  3. Can 403 Redirect to 404?
    By Hazirak in forum Graphics & Webdesign
    Replies: 2
    Last Post: 02-29-2008, 09:26 PM
  4. php var to JS var with redirect
    By oiwio in forum Programming Help
    Replies: 6
    Last Post: 02-19-2008, 07:19 PM
  5. My Redirect Won't Go!
    By Twiggy in forum Free Hosting
    Replies: 3
    Last Post: 12-19-2007, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers