Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

How would one treat a common .html file or .js file as .php in windows 2008 server running IIS 7?

I only want a specific filetype treated as .php - not all of them.

share|improve this question
up vote 2 down vote accepted

Do you have PHP set up already (serving .php files)? If so, can you add *.htm to the same handler mapping for *.php?

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.