D
David Graham
Hi
I wish to redirect visitors to my site that are using IE5.0 or IE5.2 Mac
I have found out a few things about conditional comments and redirecting
using php. The code below will redirect visitors using IE5.0 (I think!)
<!-- [if IE 5.0]>
<?php header("Location: http://www.xxx.com/"); ?>
<! [endif] -->
The expression returns false for IE5.5 because I have stated IE5.0 and not
just IE5. This is good because I don't want to redirect IE5.5 as this
browser has no problem rendering the page containing the redirect code
above. But how do I catch visitors using IE5.2 Mac? Also, where is the best
place to put the code above, I had thought of putting it above the doctype
declaration, but I think I remember reading somewhere that if you have
anything other than white space before the dtd then it immediately puts the
browser into quirk mode - is that correct? Where would you put it and is
this a proper technique for redirecting? (please don't suggest that I fix
the page so it loads in any browser, I've spent many hours on this and I
just can't figure out how to make the page load OK in these two browsers,
the page in question is http://www.catalysys.co.uk/sefriendly/
BTW - I have had one person tell me all is well in IE5 win98, but I know
the problem occurs in IE5 win2000, is that possible, does the version of
windows OS matter?
thanks
David
I wish to redirect visitors to my site that are using IE5.0 or IE5.2 Mac
I have found out a few things about conditional comments and redirecting
using php. The code below will redirect visitors using IE5.0 (I think!)
<!-- [if IE 5.0]>
<?php header("Location: http://www.xxx.com/"); ?>
<! [endif] -->
The expression returns false for IE5.5 because I have stated IE5.0 and not
just IE5. This is good because I don't want to redirect IE5.5 as this
browser has no problem rendering the page containing the redirect code
above. But how do I catch visitors using IE5.2 Mac? Also, where is the best
place to put the code above, I had thought of putting it above the doctype
declaration, but I think I remember reading somewhere that if you have
anything other than white space before the dtd then it immediately puts the
browser into quirk mode - is that correct? Where would you put it and is
this a proper technique for redirecting? (please don't suggest that I fix
the page so it loads in any browser, I've spent many hours on this and I
just can't figure out how to make the page load OK in these two browsers,
the page in question is http://www.catalysys.co.uk/sefriendly/
BTW - I have had one person tell me all is well in IE5 win98, but I know
the problem occurs in IE5 win2000, is that possible, does the version of
windows OS matter?
thanks
David