CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2003
    Posts
    7

    Question How do I write this script?

    Hello,

    I have done little to no work in VBscript before so I need a lot of help

    This is a windows based server (of course) and I have full access to the server and I am in the process of creating asp pages as we speak.

    My boss has asked me to create a script that will handling "virtual directory" forwarding on our company website.


    What I need the script to do is assign a URL to a virtual directory. Meaning, if someone types in www.whatever.com/directory it will check to see if there is anything setup in the script for redirecting people to that URL and if there is it will send them to that virtual directory. If that virtual directory does not exist the script will send them to the 404 error page.


    Example:

    User types: www.whatever.com/yes

    Script checks: Does 'yes' exist?
    If 'yes' exists: Go to www.whatever.com/whatever.asp from 'yes' as a reference.
    If 'yes' does not exist: Go to www.whatever.com/404error.asp

    So, this script would need to check any URL that is typed in by a user to our server.

    Can someone point to me to some example code to use for this? Or perhaps a tutorial of some kind that shows me how? I'm doing research in VB but I need to make this as painless as possible.

    Any help you can provide is appreciated!
    Last edited by mstubble; June 4th, 2003 at 11:31 AM.

  2. #2
    Join Date
    Jun 2003
    Posts
    7
    Anyone?

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured