IIS log and Server.Transfer

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

I am thinking of creating a custom 404 page which does a server.transfer to
a variety of different pages. My question is what shows up in the log, which
the web statistics are based on?
1. The non existent page, which is requested?
2. The custom 404 page?
3. The page it gets transfered to?
 
1. Non existent page will show up in the IIS logs (See bellow, there might
be a problem with HTTP Error code).

2. The error code will be 200 (which means OK) and not 404 unless you
specifically set it with Response.StatusCode = 404, so your WebStatistic
package will not show that page as missing. Unless you set it to 404.

3. You might be able to set the StatusCode to 404 in custom 404 page and do
the Server.Transfer hopping that the page you transfer to will not reset it.
You will have to test that as I do not know.



George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top