ASP.NET/HTML/IIS Question
-
I have an odd issue and I'm hoping there is a way to do what I want. I'd like to have any HTML (.html and .htm) files go through a templating process first. So if a user tries to go to http://test/test.htm the server gives them the file that's been processed and had a template applied (default.master). I want this to only work on one of the sites in IIS not all of them. I was trying to work with the 404 error redirects but since the file is there that won't work. Basically when the server sees a .htm or .html I want it to redirect to TEST.aspx with the old path and name as part of the URL querrystring. The TEST.aspx will read the old file and remove everything before and after the body tags. Then put the remainder in between the Content tags of the aspx file which will let ASP.NET 2.0 process it and add the master page. I think I explained this well, if not please ask questions. Thanks
-
I have an odd issue and I'm hoping there is a way to do what I want. I'd like to have any HTML (.html and .htm) files go through a templating process first. So if a user tries to go to http://test/test.htm the server gives them the file that's been processed and had a template applied (default.master). I want this to only work on one of the sites in IIS not all of them. I was trying to work with the 404 error redirects but since the file is there that won't work. Basically when the server sees a .htm or .html I want it to redirect to TEST.aspx with the old path and name as part of the URL querrystring. The TEST.aspx will read the old file and remove everything before and after the body tags. Then put the remainder in between the Content tags of the aspx file which will let ASP.NET 2.0 process it and add the master page. I think I explained this well, if not please ask questions. Thanks