IIS 7.5 redirect all domains

Damjan used Ask the Experts™

I have Windows server 2008 R2 with IIS 7.5 with HttpRedirectionModule installed.
There are several domains, that points to this Server, but are not configured. I need to redirect (301) all these domains to one, external url. How can i manage that in IIS configuration?
Websites which are already hosted on this server should remain unchanged.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
if i understand what you want to do correctly, in inetmgr, you would expand the server, expand the sites option, and then click on each site you want to redirect and do the following:

double click HTTP Redirect
enable "Redirect requests to this destination"
put the external URL in the box
enable the "Redirect all requests to exact destination" option
change the Status Code to 301
move on to the next site

I'm sure there's a more elegant way to do it via appcmd.exe, but I'm a GUI kid unless it's something I know I'm going to have to do several times.

Source: http://technet.microsoft.com/en-us/library/cc770409%28v=ws.10%29.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial