Custom 404 page, querystring added

Added By: unimaetrix

Rated:
(2 of 5) by 8.
Rate Snippet:
Description:  Addition to Lookupsite's custom 404 Page script. This modofied version of the redirect.asp page in Lookupsite's code will accept pages with querystrings, remove the querystring, see if the page extists, and if it does, then redirect to it with the querystring attached. Not a massive difference, but the original kept showing me my 404.html page when I tried to link to a page with something like <a href="pagename.asp?id=1">link</a> pagename.asp existied as a named file, but pagename.asp?id=1 did not. Use this as redirect.asp in place of the original version, with the same coding as before to show the 404 page Original version: http://www.brinkster.com/CodeBank/ShowSnippet.aspx?n376 Thanks to Lookupsite for the original code
Language:  Visual Basic Script

Save to web space
E-mail Link

Code Snippet: