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!



Reply With Quote