Forum Moderators: open

Message Too Old, No Replies

ASP custom 404 page returning pages that exist

Problem with a custom 404 page flagging pages that do exist

         

newwavecafe

10:07 am on Dec 1, 2006 (gmt 0)

10+ Year Member



Hi
I have a custom 404 error page, which displays a message to the user, and sends an email to me displaying the URL that was trying to be accessed.
This works fine in that when a user looks for a file that does not exist, I get an email.

However I also get many emails telling me that index.asp?param1=abc&param2=xyz does not exist. Telling me that a 404 error happened when this page was accessed. Now index.asp does exist, and even the parameters are usually correct, and when I try to access the page myself, I see it with no problems.

Does anyone know why this might be? I have shown the code of my 404 page below. I thought it might have meant the server was down when the page was accessed, but then the 404 page shouldn't work either?

Many thanks, here is the code:

---------------------------------

Response.Status = "404 Not Found"

dim pageRequested,gobjDB

with request
pageRequested = mid(.queryString, instr(.queryString,";") + 1)
end with

Call SendEmail(pageRequested)

----------------------------------

bmcgee

6:51 am on Dec 4, 2006 (gmt 0)

10+ Year Member



Is it triggering when a visitor's browser tries to grab the favicon.ico?

If you don't have a favicon.ico, it can produce some ugly interference in your custom 404 page.