We are facing problems in URL Redirecting 4 URL’s to a single URL.
The following is the mapping we need.
Entered URL -> Target URL
example1.com -> example1.com
http://www.example1.com -> example1.com
example2.com -> example1.com
http://www.example2.com -> example1.com
We are using IIS7 on WIn Srv 2008 SP1.
We now have all the bindings set in IIS. We have HTTPS. But for only the Target URL option we are having a valid certificate. All the rest of the options are shown as “This Connection is Untrusted” and the user has to manually click on the proceed to website. We want to redirect the user to the desired site even if the user types any of the URL’s. I mean the User’s URL in the browser should change to the target URL and the secured connection should open.
I have found URL Redirect 2.0 after googling for this. Will this solve my problem. Is it safe or is there any gotcha’s involved in this.
Any better option without installing any.
TIA
Arun Kumar Allu.
I assume you have IIS “URL Rewrite” module installed, if so, then use these rewrite rules: