IIS Redirection

9:36 pm in windows by Matt Jenkins

If you use IIS, and have many URLs that all point at the same site, you’ll want to enjoy the benefits of combining all the traffic to your main site. I’ve seen this done in several ways, but I think this is simple and easy to manage.

Setup your main site as usual, www.test.com on IP 10.0.0.10 -with the host header www.test.com

IIS_set_host_header

Setup a duplicate site with no host header, then set it to redirect to http://www.test.com/$p$q (to include the query string).

IIS_redirect

Now anything that hits 10.0.0.10 on port 80 will be redirected with a 301 status to http://www.test.com.

Google with appreiciate it