Redirect additional domains to main .com domain using IIS7 URL Rewrite Module
问题 How should I configure the URL Rewrite Rule in IIS7 to redirect my aditional domains ( domain.net, domain.org, domain.info) to the principal .com domain? 回答1: In IIS7, you can use the new command “appcmd.exe” to enable redirection as following: %windir%\system32\inetsrv\appcmd set config "Default Web Site/" -section:system.webServer/httpRedirect -enabled:true -destination:"http://domain.com" This tells IIS to redirect all request sending to the virtual application “/” to “http://domain.com”.