URL Rewrite for Hosting Providers
The purpose of this article is to provide a guiding map to the various resources available for hosters who are learning about and deploying the IIS URL Rewrite module. This module is an important component of the Windows Web Platform, as illustrated in this Shared Hosting article. The URL Rewrite module provides functionality to Web users and site administrators that was only partially available in a handful of limited, complex, custom systems.
For more information on the features of URL Rewrite Module, see IIS URL Rewrite Module.
Learn About the URL Rewrite Module
The URL Rewrite module provides server and site administrators with the ability to create rules that modify a site's URL appearance before the Web server processes it. This makes it possible to expose simpler URLs that would be easier for users to remember. Also, it lets server and site administrators use search engines to store, process, and present friendly URLs, improving the overall Web experience. Here is a basic explanation of friendly URLs that are enabled by the URL Rewrite module within a shared hosting environment:
- The image above depicts the following events involving URL Rewrite:
The end user types URL:
- Then the URL Rewrite module in the Web server for site www.somestore.com alters it from
http://www.somestore.com/catalog.php?Department=chocolates&Category=dark&Label=organic, which is then processed by the application.
- If the user wants to see a list of all chocolates, the user can then bypass the navigation features of the Web application and type the following URL:
URL rewrite makes URL typing friendlier to users. Benefits include, but are not limited to:
- Web application users and search engines benefit from simpler, friendlier URLs.
- Web developers and administrators can use URL Rewrite to hide how applications work internally.
- Web developers can use URL Rewrite as a layer of abstraction, allowing the friendly URLs to be valid even after changing the core technology used to implement the application.
- Administrators can use URL Rewrite as a tool to combat some undesired practices, such as hot linking or inline linking.
For a complete list of features and guidance, see Using the URL Rewrite Module.
Deploy the URL Rewrite Module
As seen in the image above, the URL Rewrite module is found in:
- Every Web server in the Web farm. This enables server and site administrators to manage their URL Rewrite rules. This implies that the URL Rewrite module should be part of the image used to build the servers in the farm.
- The Application Request Routing (ARR) server. ARR uses the URL Rewrite module as a core component of its routing functionality. The ARR installer also installs the URL Rewrite module, so there is no need for a separate installation step.
URL Rewrite can be downloaded from:
For detailed steps about the installer, see the section "Where to get the module" in Using the URL Rewrite Module.
Once the URL Rewrite module is installed, its functionality is available to users by default. Separately, hosters could take advantage of global rules to define rules that affect all sites on the server. For more information, see Global and Distributed Rewrite Rules. Users are oblivious to global rules.
Common URL Manipulation Tasks
The following video provides demonstrations for:
- Enabling user and search engine friendly URLs for dynamic Web pages.
- Enforcing canonical host names for Web sites.
- Using rewrite maps.
- Blocking unwanted requests.
- Troubleshooting and debugging rewrite rules.
The section "Using the module" in Using the URL Rewrite Module provides links to content that covers the functionality of the URL Rewrite module and explanations about how to use it to accomplish common URL rewriting scenarios.
The IIS 7.0 Request Filtering and URL Rewriting article describes the differences between URL Rewrite and HTTP Request Filtering. It will help you decide when to take advantage of either one.
This article explains what the new URL Rewrite module is, why it is important for hosters, and guides the user to the resources available to learn about, deploy, and configure the IIS URL Rewrite module.