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: