urlrewrite - catch all paths on iis
-
hi guys. i am working on url rewrite module that works fine on Visual Studio asp.net development server, but not on local IIS. i will minimize my code. here is rewriter class:
public class UrlRewrite : IHttpModule
{
public void Init(HttpApplication context)
{
context.BeginRequest += new EventHandler(context_BeginRequest);
//context.AuthorizeRequest += new EventHandler(context_BeginRequest);
}void context\_BeginRequest(object sender, EventArgs e) { HttpApplication ha = sender as HttpApplication; //here i want to do some coding
/*
when running on VS development server i can access all paths of all elements on page,
such as "link" path "App_Themes/LayOut.css" or "img" path "Slike/someimage.jpg" and of course main url
of page "one/two/three" to rewrite it to "Default.aspx?arg1=one&arg2=two&arg3=three"
*//*
when i run page on local IIS i can access only main url (context_BeginRequest fires only one time)
so i can rewirte only main url, but i can't rewrite my css, javascript, images and other
stuffs paths...
*/
}
}so question is: how can i access (request) at context_BeginRequest all elements in IIS like i can in VS development server?