IIS Redirection - Server 2012 R2

Dunno about 2012, but recently did this on 2008.

IIS Manager..
Highlight the site
Choose URL Rewrite from the choices
Build an expression to match URL to someschizzle.host.com
Rewrite to
host.com
Append Query String (or not - upto your application).

There's all sorts of stuff you can then do with regex searches to match different pages/query strings etc if you only sometimes want to redirect.
 
Use the URL rewriting module addon as skyripper suggested, unless of course you have a load balancer in front of your website in which case I'd use that instead.
 
Back
Top Bottom