Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a .net application I want to respond to .htm and .html requests (in addition to .aspx). I know how to do this in IIS6, but not in IIS7. Someone please enlighten me!



share|improve this question
in windows features do you have "static content" feature installed? – Alexander Taran May 21 '09 at 7:26

This web site has a tutorial that will probably get you moving in the right direction.

share|improve this answer
+1, though I'm not sure if the wild card mapping is the best way to go about it. – Jonathan Parker May 21 '09 at 5:14

In the Features View for the site or virtual directory you want this to apply to, look for the Handler Mappings icon in the lower IIS section. Double click that to get into the actual list of handlers currently mapped. You should theoretically see existing entries for things like *.aspx. Double click the *.aspx one and use it as an example to create a new mapping for *.html. The Add Script Map in the right hand pane is what you should use for this particular entry.

You can also do this in the web.config file directly. But it's probably easier to just do it via the GUI first and then look at the resulting web.config file to see what changes were actually made.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.