Forums
This topic is locked
Redirection driving me nuts, please help!
20 Mar 2003 09:30:49 Phil Cue posted:
Hi,I just can't seem to find a solution to this.
I want to redirect the following to the correct browser version:
www.mysite.com/test.asp?id=123
I have a browser detection page in the middle (using the Magicbeat server
behaviour 'detect browser and redirect') to Internet Explorer version
here:
www.mysite.com/test_ie.asp?id=123
note the difference: _ie
I'd be obliged if anyone could let me know how it is done, it's driving me nuts!
Thanks.
Replies
Replied 20 Mar 2003 09:39:14
20 Mar 2003 09:39:14 Phil Cue replied:
I've just realised the test URL I have used goes to some Auction site, sorry this was unintentional.
Phil
Phil
Replied 20 Mar 2003 15:08:42
20 Mar 2003 15:08:42 Chris Cahill replied:
Hi Phil,
Netscape 4 has trouble with horizontal loopers, so I use MX's built-in "Check Browser" to redirect NS users with anything less than NS 6 to a page called Netscape-Sux instructing them to download the latest version for security reasons. This is just jscript that is located in the head of the page, and there is no need for a page in between.
If you want to have 2 versions of your site (1 for NS 4 & 1 for the rest) create a separate folder just for the NS 4 people & redirect them there. If you absolutely need to have more versions of your site, create other folders and repeat the behavior on the NS 4 page with different browser check (if IE 5 then go to this folder). Why do you need separate versions of your site?
CHRIS
Netscape 4 has trouble with horizontal loopers, so I use MX's built-in "Check Browser" to redirect NS users with anything less than NS 6 to a page called Netscape-Sux instructing them to download the latest version for security reasons. This is just jscript that is located in the head of the page, and there is no need for a page in between.
If you want to have 2 versions of your site (1 for NS 4 & 1 for the rest) create a separate folder just for the NS 4 people & redirect them there. If you absolutely need to have more versions of your site, create other folders and repeat the behavior on the NS 4 page with different browser check (if IE 5 then go to this folder). Why do you need separate versions of your site?
CHRIS
Replied 20 Mar 2003 20:24:09
20 Mar 2003 20:24:09 Phil Cue replied:
Hi Chris,
I have 3 versions of the site, latest IE, NS and a Generic.
There must be some way of maintaining state between:
www.mysite.com/test.asp?id=123,
the redirection page and
www.mysite.com/test_ie.asp?id=123.
I tried a session but this won't work.
I mean it, it's been driving truly nuts <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
I really can't find the solution anywhere, even the Magibeat who wrote the server behaviour. I need to finish this so I can have my life back!! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Regards,
Phil.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi Phil,
Netscape 4 has trouble with horizontal loopers, so I use MX's built-in "Check Browser" to redirect NS users with anything less than NS 6 to a page called Netscape-Sux instructing them to download the latest version for security reasons. This is just jscript that is located in the head of the page, and there is no need for a page in between.
If you want to have 2 versions of your site (1 for NS 4 & 1 for the rest) create a separate folder just for the NS 4 people & redirect them there. If you absolutely need to have more versions of your site, create other folders and repeat the behavior on the NS 4 page with different browser check (if IE 5 then go to this folder). Why do you need separate versions of your site?
CHRIS
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I have 3 versions of the site, latest IE, NS and a Generic.
There must be some way of maintaining state between:
www.mysite.com/test.asp?id=123,
the redirection page and
www.mysite.com/test_ie.asp?id=123.
I tried a session but this won't work.
I mean it, it's been driving truly nuts <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
I really can't find the solution anywhere, even the Magibeat who wrote the server behaviour. I need to finish this so I can have my life back!! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Regards,
Phil.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi Phil,
Netscape 4 has trouble with horizontal loopers, so I use MX's built-in "Check Browser" to redirect NS users with anything less than NS 6 to a page called Netscape-Sux instructing them to download the latest version for security reasons. This is just jscript that is located in the head of the page, and there is no need for a page in between.
If you want to have 2 versions of your site (1 for NS 4 & 1 for the rest) create a separate folder just for the NS 4 people & redirect them there. If you absolutely need to have more versions of your site, create other folders and repeat the behavior on the NS 4 page with different browser check (if IE 5 then go to this folder). Why do you need separate versions of your site?
CHRIS
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 22 Mar 2003 18:15:12
22 Mar 2003 18:15:12 Phil Cue replied:
Come on guys and gals,someone must be clever enough!! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Or perhaps you really can't find a solution to it?
Or perhaps you really can't find a solution to it?
Replied 23 Mar 2003 12:16:51
23 Mar 2003 12:16:51 Phil Cue replied:
Seriously, I really thought someone must be clever enough to solve this problem, was I wrong? Are you all just talk? <img src=../images/dmxzone/forum/icon_smile_shock.gif border=0 align=middle>
I lay down the gauntlet, I challenge someone, not only find a solution, but also to find it before 27th March (2003).
Look, I'll even include the code on the rediredtion page to help you all <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle> :
<%
agent = Lcase(Request.ServerVariables("HTTP_USER_AGENT")
nslash = InStr(1,agent,"/",1)
name = Left(agent, nslash -1)
vers = Right(agent, Len(agent) - nslash)
if InStr(1,name,"mozilla",1) > 0 Then
if InStr(1,agent,"spoofer",1) = 0 AND InStr(1,agent,"compatible" = 0 Then
name = "Netscape"
Else
If InStr(1,agent,"msie",1) > 0 Then
name = "Microsoft"
End If
End If
End If
if InStr(1,name,"Microsoft",1) > 0 AND CSng(Left(vers,3)) >= 4.0 Then
Response.Redirect("index_ie.asp"
Else
If InStr(1,name,"Netscape",1) > 0 AND CSng(Left(vers,3)) >= 4.0 Then
Response.Redirect("index_ns.asp"
Else
If InStr(1,name,"Netscape",1) > 0 AND CSng(Left(vers,3)) >= 3.0 Then
Response.Redirect("index_ns.asp"
Else
Response.Redirect("index_gen.asp"
End If
End If
End If
'MagicBeat Server Behavior - 1023 - by Jag S. Sidhu - www.magicbeat.com
%>
I lay down the gauntlet, I challenge someone, not only find a solution, but also to find it before 27th March (2003).
Look, I'll even include the code on the rediredtion page to help you all <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle> :
<%
agent = Lcase(Request.ServerVariables("HTTP_USER_AGENT")
nslash = InStr(1,agent,"/",1)
name = Left(agent, nslash -1)
vers = Right(agent, Len(agent) - nslash)
if InStr(1,name,"mozilla",1) > 0 Then
if InStr(1,agent,"spoofer",1) = 0 AND InStr(1,agent,"compatible" = 0 Then
name = "Netscape"
Else
If InStr(1,agent,"msie",1) > 0 Then
name = "Microsoft"
End If
End If
End If
if InStr(1,name,"Microsoft",1) > 0 AND CSng(Left(vers,3)) >= 4.0 Then
Response.Redirect("index_ie.asp"
Else
If InStr(1,name,"Netscape",1) > 0 AND CSng(Left(vers,3)) >= 4.0 Then
Response.Redirect("index_ns.asp"
Else
If InStr(1,name,"Netscape",1) > 0 AND CSng(Left(vers,3)) >= 3.0 Then
Response.Redirect("index_ns.asp"
Else
Response.Redirect("index_gen.asp"
End If
End If
End If
'MagicBeat Server Behavior - 1023 - by Jag S. Sidhu - www.magicbeat.com
%>