Custom 404 and 301's in ASP
Posted on 2009-07-06
I have a site that we are redeveloping that has to stay on the current host/environment. We do not have access to creating any type of redirection from .htm or .html files to any other type of files. However, we can create a custom 404 page.
The only server side scripting available is classic ASP (VBScript).
What I would like to do is have the custom 404 page get the URL that was originally requested and then do a 301 redirect to the new page.
Can someone tell me how to get the url that was originally requested in VBScript?