Hi i have a asp.net webforms application which is a new version of an old webshop. I have a lot of inbound links from the Internet, that point to a particular category page: http://www.example.com/category1.html, the path to this category in the new setup is similar to: http://www.example.com/category.aspx?id=42.
I have setup the Category.aspx page to handle errors and redirect to a custom page, log the error and redirect to my front page.
I have setup the Global.asax Application_Error to do the same
I have setup the Web.config, with custom errors to relay 404 using the same concept as above.
Everything is working as it should in Visual Studio (the build in web server), when i publish it to my web host, it doesn't work, they say it is running in integrated mode... anyone got a solution to this?
Sincerely, Brian
Edit/Solution The IIS running in Integrated mode, so i finally found out that i couldnt handle this the way i did, i write a httphandler, registered it in the web.config and assigned it to intercept all calls made to *.html files. All i had to do was then to rediret to the proper source page.