I'm trying to use Context.RewritePath in protected void Application_BeginRequest to rewrite a URL but without much luck.
I want to be able to take the URL
and convert this using a rewrite to
I've tried to use the code supplied but with no luck as I simply get told that my page cannot be found. Any suggestions are welcomed
string fullOrigionalpath = Request.Url.ToString();
string customer = fullOrigionalpath.Substring(fullOrigionalpath.LastIndexOf("/"));
Context.RewritePath("/Login.aspx?customer=" + customer);