6/6/11

creating custom 404 pages .asp classic vbscript

nice solution

http://classicaspreference.com/aspexamples/custom404.asp

http://wiki.lessthandot.com/index.php/URL_Rewriting_%28Classic_ASP%29
(better solution)

 My quick and dirty solution?
Dim RequestedURL, AbsolutePath RequestedURL = Right(Request.ServerVariables("QUERY_STRING"), Len(Request.ServerVariables("QUERY_STRING")) - Instr(Request.ServerVariables("QUERY_STRING"),";")) RequestedURL = Replace(RequestedURL,":80","") 
This just writes out the requested "not found url" to confirm to the user what they actually typed in...

No comments:

Post a Comment