Forum Moderators: phranque

Message Too Old, No Replies

IIS - massive server side redirect

redirect all html-pages to their respective asp-page

         

Darkelve

8:52 am on Mar 2, 2005 (gmt 0)

10+ Year Member



Hi,

For our corporate website, we need to convert all pages to ASP so they can make use of certain chunks of ASP code that we want to use.

Either that or find a way to make IIS treat all html-pages as an asp-page. But I guess this is
not a clean thing to do.

So what I am wondering is if there is a simple way to make the IIS webserver redirect all html-pages to their respective asp-page. E.g. a page called contact.html should be redirected to contact.asp, info.html to info.asp , ...

Is there a straightforward way of doing so in IIS?

Regards,

Darkelve

plumsauce

7:38 pm on Mar 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




just configure IIS to handle .html requests as asp pages
you can do this at the server level, site level, folder level, or individual pages.

Darkelve

9:36 am on Mar 7, 2005 (gmt 0)

10+ Year Member



Hi,

thanks for the reply... this is at least good news it is possible.

I must add that I am not the one that manages the webserver, so I would appreciate if anyone could tell me where to find this option or, at least, where I can find documentation to do this. Just so I can make that other persons job a little easier.

Edit: did some more research and found this is possible through something called ISAPI filters: [iis-resources.com...]

Are they usually installed on IIS or should I ask our hosting company to set this up (seems like the best approach to me).

Darkelve

Corey Bryant

4:30 pm on Mar 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Usually these have to be installed but a lot of hosting companies already offer this one

-Corey

Receptional Andy

4:55 pm on Mar 7, 2005 (gmt 0)



There's a good step-by-step for configuring IIS to parse htm files for ASP at [webmasterworld.com...]

This would seem to me a much better option than redirecting everything.

Darkelve

9:43 am on Mar 21, 2005 (gmt 0)

10+ Year Member



Thank you!