Professional Microsoft IIS 8
by Kenneth Schaefer, Jeff Cochran, Scott Forsyth, Dennis Glendenning, Benjamin Perkins
Getting Started Walk-Through
Enough talking! Let's perform a simple walk-through so that you can see URL Rewrite in action and get a feel for how the rules really work. The following walk-through creates a Canonical Domain Name rule to redirect from localtest.me to www.localtest.me. There is also a template for this particular situation, which we'll cover later.
For this example, you will create the rule at the site level so that it doesn't impact anything else on the server, and use the Wildcards match syntax since it's straightforward for the first walk-through. You'll use IIS Manager as the tool to create the rules since it gives the best visual way to understand the rule structure.
First, let's get started by setting up a test site for this and further examples in this chapter. To set up the test site, perform the following steps:
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access