Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

How to process .htm files as ASP?

Is there a mod rewrite equivalent for IIS?



7:14 am on Aug 5, 2004 (gmt 0)

10+ Year Member

I have a website with static html pages. Now I want to add some dynamic content and add some server side scripting. The problem is that I can rename the pages to .asp as this would break the the incomming links to my site and search engine listings. If this was a linux server I could have used mod rewrite or enabled php for .htm files. How can I achieve this on a Windows 2003 server with IIS?


7:54 am on Aug 5, 2004 (gmt 0)

WebmasterWorld Administrator ianturner is a WebmasterWorld Top Contributor of All Time 10+ Year Member

In IIS Properties for the site Home Directory - hit the configuration button - this shows you the App Mappings, set up a mapping for .htm to the ASP DLL.


11:52 am on Aug 5, 2004 (gmt 0)

10+ Year Member

Thanks for the suggestion. But this is a shared hosting account and I don't have access to those settings.


12:51 pm on Aug 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Your host might let you do that. I believe that Mapping is relative to the site via the site properties not the collection of sites.


1:59 pm on Aug 5, 2004 (gmt 0)

10+ Year Member

If the host won't allow mapping, see if they will allow a custom mime type. If so, you can set the mime type of .html to text/asp.


8:12 pm on Aug 5, 2004 (gmt 0)

10+ Year Member

Thanks guys! I asked my website hosts and they gladly mapped .htm files to ASP. Problem solved!

Featured Threads

Hot Threads This Week

Hot Threads This Month