Re: Redirect Script Needed


[ Follow Ups ] [ Post Followup ] [ Mobic discussion group ] [ FAQ ]

Posted by Martin Loman on December 13, 1999 at 16:03:05:

In Reply to: Redirect Script Needed posted by Bruno Kelpsas on December 13, 1999 at 00:43:59:

Hi Bruno!
I made this in ASP and it seems to work fine (at least for Netscape and IE but it's not hard to add the functionality you need).

----------code begins-----------
<%Response.ContentType = "text/vnd.wap.wml"
Dim wmlURL, htmlURL

wmlURL = "http://wap.brainpool.se/wap/index.wml"
htmlURL = "http://www.brainpool.se"

Set objBrowse = Server.CreateObject("MSWC.BrowserType")

if objBrowse.Browser = "IE" OR objBrowse.Browser = "Netscape" then
Response.Redirect htmlURL
else
Response.Redirect wmlURL
End if
%>
---------code ends-------------

Good luck
/Martin

: Anybody have either a CGI or an ASP script that I can use to redirect traditional browsers to my "index.htm" page and WAP mini-browsers to my "index.wml" page?

: Please include any specific configurations that I would need to make.

: Thanks much

: Bruno




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Mobic discussion group ] [ FAQ ]