I have a website on IIS set to domain1.com. I also have a domain called domain2.com that is redirecting to domain1.com. I currently have this set up in the domain1.com bindings. I need to change this to where domain2.com is redirected to domain1.com/blog
Would I do this through the web.config file or is there another way?
Best Answer
Another option is to do it using the appcmd.exe command, using command prompt.
The above commands should do the job.
This commands are also useful to create any kind of redirection.
The url rewrite module is a requirement. It has to be installed on your IIS.
This commands are running without problems on my Windows Server 2012 machine.
Hope that helps.