So I setup Global.asax to manage my URLs and it works great in my development environment (running on the Visual Studio server) but when I publish the site and place it under IIS (IIS 7; Vista) to test it, it doesn't seem to work at all.
Is there something I'm missing?
All of my URL re-writing is done in the Application_BeginRequest event using Context.RewritePath.
Small snippet:
Would it be better to convert to using an Http Handler?Code:List<string> Args = new List<string>(HttpContext.Current.Request.Path.Split('/')); Args.RemoveAll(EmptyString); if (Args.Count > 0) { switch (Args[0].ToUpper()) { case "ABOUT": Context.RewritePath("/Pages/About.aspx"); break; } }




Reply With Quote