htaccesstowebconfig.com

Drupal Web.Config Sample Code

Below is an sample that we made from Drupal's htaccess file. Please feel free to use it.

Translate .htaccess Content to IIS web.config

Many PHP applications are distributed with configuration files for the Apache Web server. These configuration files (usually called .htaccess files) contain a number of settings that can be used for integrating the application with the capabilities of the Web server. IIS 7 and above uses a file called Web.config to hold settings for integration with applications. The Web.config file contains information that control module loading, security configuration, session state configuration, and application language and compilation settings. Web.config files can also contain application-specific items such as database connection strings. Click here to see article that describes the most common uses of the .htaccess file by PHP applications, and shows how to use the Web.config file for these same functions in IIS.