URLRewrite (without any modules installed)
My hosting provided has IIS6, and will not install any modules for the URLRewrite.
So, I am stuck to improvisions of trying to get something to work.
OK. I have tested the below code on: IIS5.1 (XP) and IIS7.5 (Win7)
Debugging through VS2008 Pro, and in IIS5.1 it stops at the break that I set
In IIS7.5, it does not stop at the break, and they both give me a 404 not found error (IIS5, when I F5 to compile through)
The code that I was given is:
Within the Global.asax file, this
Suppse to run /User/yourname
And work, but this is not the case with me here on either of the 2 systems.
void Application_BeginRequest(object sender, EventArgs e)
//URL example: www.site.com/User/UserName
string url = Request.Url.ToString();
//Get the username
string temp = url.Split('/');
string userName = temp[temp.Length - 1];
Context.RewritePath("~/Test.aspx?username=" + userNam
View Complete Post