Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a summary of: #615474: Support for IIS 7 and applies to IIS 7 and IIS 7.5 with IIS Rewrite Module 2.0 module. Installation and configuration of the Boost 7.x and 6.x module itself are the same for IIS as any other webserver, with the exception of the following:
1. Make sure IIS Rewrite Module 2.0 is enabled. If you have IIS Rewrite, you need to upgrade for this to work. See http://www.iis.net/download/URLRewrite for info on this module. Note install of this module requires a server restart!
2. Add CONTENT_TYPE to allowed server variables. In the IIS Server Manager, go into URL Rewrite feature of the site. Click 'View Server Variables...' and add CONTENT_TYPE as an allowed server variable. If you don't do this you'll get a 500 error due no permissions to change the CONTENT_TYPE variable below. If you do not see the 'View Server Variables...' configuration option, you may have IIS Rewrite module 1.0 installed.
3. Add the rewrite rules. The attached files rewrite rules (boost_iis_7_with_IIS_rewrite_II_module.txt) should be added to your sites web.config list, before the Drupal clean URLs rule. The second attachment (default_web_config_with_boost_rules_in_it.txt) is the boost rules included in the default web.config that ships with drupal 7.