URL Rewriting

Oct 1, 2012 at 1:31 PM

Can someone guide me on implementing a url rewriter using Filter.Net. I am writing a sample filter code as given below. But, it does not seem to be working.

        void IHttpFilter.Init(IFilterEvents events)
        {
            events.UrlMap += new EventHandler<UrlMapEventArgs>(events_UrlMap);
        }

        void events_UrlMap(object sender, UrlMapEventArgs e)
        {
            e.Context.MappedPath = "~/MySite/Results.aspx";
        }