redirect non www to www in iis 7 and 8

The common use of URL Rewrite is redirecting to Many people are doing this for search engine optimization (SEO) so that search engines only see the one site, rather than two sites. The goal is to set a permanent 301 redirect.