I'm working on Windows Server2003 with the following:
IIS6
.NET Runtime 2.0
ASP.NET C#
I've got some pages like these:
fr.mywebsite.eu/productA/sub_product1.html fr.mywebsite.eu/productA/sub_product2.html fr.mywebsite.eu/productB/sub_product14.html fr.mywebsite.eu/productC/sub_product26.html
The directories productA
, productB
, productC
don't really exist.
In my global asax
, I get the url requested and I do something like this:
HttpContext.Current.RewritePath(
"product.aspx?p=" + codeProduct + "&sp=" + codeSubProduct);
For now everything is working.
But I'm trying to make the following page list all subproducts:
http://fr.mywebsite.eu/productB/
The problem is that IIS considers productB
to be a directory and I get a 404
error.
Is there any directive to make IIS not check if DIRECTORY exist similar to the manner of ISAPI extensions but for a directory?