Hi friends.
I have a problem to rewrite url using RewritePath method.
Code implementation as below.
Class
public class rewrite : IHttpModule
{
public rewrite()
{
//
// TODO: Add constructor logic here
//
}
#region IHttpModule Members
public void Dispose()
{
//
}
public void Init(HttpApplication context)
{
context.BeginRequest += new EventHandler(context_BeginRequest);
}
#endregion
private void context_BeginRequest(object sender, EventArgs e)
{
HttpContext context = ((HttpApplication)sender).Context;
string URL = context.Request.Url.ToString();
string URLKey = URL.Substring(URL.ToLower().LastIndexOf("/") + 1).ToLower();
string QueryString = "";
if (URLKey.Contains("?"))
{
QueryString = URLKey.Substring(URLKey.IndexOf(" ...
Go to the complete details ...