I have a http module which redirects to a website when a user is not authorised. This website then checks for credentials and returns the user to the original page based on a query string.The problem I have is that \[code\]Request.Url.AbsoluteUri\[/code\] seems to omit default.aspx whenever a root directory is requested, e.g. \[code\]http://example/application/\[/code\] This behaviour can be observed using the test case below. When using \[code\]Response.Redirect\[/code\] within \[code\]Application_AuthenticateRequest\[/code\] Please note, the VS web development server Cassini behaves normally and will correctly redirect to \[code\]http://example/application/?url=http://example/application/default.aspx\[/code\] I presume this is related to IIS processing the request differently. (I'm running IIS6)\[code\]namespace HI.Test { public class Authentication : IHttpModule { private HttpRequest Request { get { return HttpContext.Current.Request; } } private HttpResponse Response { get { return HttpContext.Current.Response; } } private Cache Cache { get { return HttpContext.Current.Cache; } } public void Init(HttpApplication application) { application.AuthenticateRequest += (new EventHandler(Application_AuthenticateRequest)); } private void Application_AuthenticateRequest(Object source, EventArgs e) { if (Request.QueryString["url"] == null) { Cache.Insert("URLRedirected", Request.Url.AbsoluteUri); Response.Redirect(Request.Url.AbsoluteUri + "?url=" + Request.Url.AbsoluteUri); } } public void Dispose() { } }}\[/code\]I'm obviously looking for a fix to the problem and also I'd like to understand why this happens.