H
Hemant
Hi All,
I am using global.asax for rewriting the url.
In Application_BeginRequest I do the following.
Dim fullOrigionalpath As String =
Request.AppRelativeCurrentExecutionFilePath.ToUpper().Replace("~/",
"").ToLower()
if (fullOrigionalpath.Contains("fruit.html")) Then
Context.RewritePath("Product.aspx?RootCategoryID=1004", False)
end if
It is working fine if I run the code without the IIS .
for example: http://localhost:3905/abc.com/fruit.html
but if I run this from IIS I got error .
for example : http://localhost/abc.com/fruit.html
in this i Got 404 error .
What is the reason
What am I missing ?
Please help me.
Thanks,
Hemant
I am using global.asax for rewriting the url.
In Application_BeginRequest I do the following.
Dim fullOrigionalpath As String =
Request.AppRelativeCurrentExecutionFilePath.ToUpper().Replace("~/",
"").ToLower()
if (fullOrigionalpath.Contains("fruit.html")) Then
Context.RewritePath("Product.aspx?RootCategoryID=1004", False)
end if
It is working fine if I run the code without the IIS .
for example: http://localhost:3905/abc.com/fruit.html
but if I run this from IIS I got error .
for example : http://localhost/abc.com/fruit.html
in this i Got 404 error .
What is the reason
What am I missing ?
Please help me.
Thanks,
Hemant