Download the relevant URL Rewrite module from this URL https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-the-url-rewrite-module Add a new website in IIS Add bindings and enter URL in host name field from where we want user to redirect. Target URL will be added in rules in web.config file Right click on website , add a web.config file in that folder directory and then add below redirect rule in file <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Redirect www" stopProcessing="true"> <match url="(.*)"/> <action type="Redirect" url="http://www.mysite.com/" redirectType="Permanent" appendQueryString="false"/> </rule> </rules> </re...