K
Klaus Jensen
Hi
I created code to allow me to rewrite urls from global.asax, so that if the
incoming Url is for instance:
/Hats/ReallyCoolHat.aspx
....I look up ReallyCoolHat in the products table and rewrite the url to
Product.aspx?id=12 if that is the productId for ReallyCoolHat.
This works, because .aspx-files are handled by Asp.Net, so I can catch
requests in global.asax and rewrite the url, if I want to.
I also know how to set IIS to have Asp.Net handle all kinds of extensions...
But... I also need to do something similar for folders, ie...:
/Hats/
....But this does not have an file-extension, and is not handled by Asp.Net.
How do I make Asp.Net handle this, so I can catch requests to /Hats/ in
global.asax Application_beginrequest?
I created code to allow me to rewrite urls from global.asax, so that if the
incoming Url is for instance:
/Hats/ReallyCoolHat.aspx
....I look up ReallyCoolHat in the products table and rewrite the url to
Product.aspx?id=12 if that is the productId for ReallyCoolHat.
This works, because .aspx-files are handled by Asp.Net, so I can catch
requests in global.asax and rewrite the url, if I want to.
I also know how to set IIS to have Asp.Net handle all kinds of extensions...
But... I also need to do something similar for folders, ie...:
/Hats/
....But this does not have an file-extension, and is not handled by Asp.Net.
How do I make Asp.Net handle this, so I can catch requests to /Hats/ in
global.asax Application_beginrequest?