Capturing URL That User Types

Results 1 to 2 of 2

Thread: Capturing URL That User Types

  1. #1
    Eoin Beck Guest

    Default Capturing URL That User Types

    Hi,<BR><BR>I would like to find out how to capture the URL that the user typed in. I&#039ve got multiple aliases pointing to the same IP address, and based upon the URL the user types, I would like to redirect them to specific pages. In the example below, I would like to find a way to get the value for the userURL variable.<BR><BR>I think I might be able to use the SCRIPT variable from the ServerVariables collection, but I am not sure. <BR><BR>Any information would be greatly appreciated.<BR><BR>Regards,<BR><BR>Eoin Beck<BR><BR>Ex.<BR><BR>On_SessionStart (in global.asa)<BR><BR>userURL == ????<BR><BR>Select Case UserURL<BR> Case "firstURl"<BR> response.redidrect ....<BR> Case "secondURl"<BR> response.redirect....<BR> Case else<BR> response.redirect ....<BR>end select<BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    168

    Default RE: Capturing URL That User Types

    Try:<BR><BR>userURL=Request.ServerVariables("Serve r_Name")<BR><BR>or<BR><BR>userURL=Request.ServerVa riables("HTTP_Host")<BR><BR>Hope this helps... Cheers!

Posting Permissions

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