W
wizofaus
IIS 6.0 by default includes 'default.aspx' as a default document, so if
your ASP.NET app uses default.aspx, and a user types a URL without a
document name (i.e., a directory name only, e.g.
http://localhost/foo/), IIS automatically loads up default.aspx to
process the request.
The problem is, it appears that from the server end, there is no way of
determining that this is what the user has done. That is, when you
examine the various variables that are supposed to give information
about what URL the user accessed (Request.RawUrl etc. etc.), they all
*include* default.aspx, even though the user never asked for this. Is
there any way of getting the URL they actually requested? IIS must
have this recorded somewhere, but it doesn't appear to be available.
your ASP.NET app uses default.aspx, and a user types a URL without a
document name (i.e., a directory name only, e.g.
http://localhost/foo/), IIS automatically loads up default.aspx to
process the request.
The problem is, it appears that from the server end, there is no way of
determining that this is what the user has done. That is, when you
examine the various variables that are supposed to give information
about what URL the user accessed (Request.RawUrl etc. etc.), they all
*include* default.aspx, even though the user never asked for this. Is
there any way of getting the URL they actually requested? IIS must
have this recorded somewhere, but it doesn't appear to be available.