homepage Welcome to WebmasterWorld Guest from 54.205.59.78
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
How to process .htm files as ASP?
Is there a mod rewrite equivalent for IIS?
saurabh




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

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?

 

IanTurner




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

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.

saurabh




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

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

Easy_Coder




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

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.

macrost




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

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.

saurabh




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved