HTTPS IIS redirect without creating another site

Vitor Dias Mariano 1 Reputation point
2021-01-12T19:59:57.717+00:00

Good morning gentlemen,

I'm trying to redirect HTTPS from the websites of the company I work for, but via URL Rewrite and the HTTPS settings of IIS itself are not working, so I am obliged to create another website just to do the redirection, but on our server specific, it works and apparently their firewall settings and iis are the same.

There is a website ... example "vitor.com.br" and when I try to create an HTTPS targeting rule on this same website it doesn't work.

If I create another site and configure its binding just to make this redirection on "vitor.com.br" work, however I would like to perform the redirection without having to create this second website.

So I keep the original site and one to redirect

Site 1 -> Vitor

Site 2 -> Vitor_Redirect (created only to redirect site 1 to HTTPS)

Thanks :)

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,522 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sam Wu-MSFT 7,446 Reputation points Microsoft Vendor
    2021-01-14T09:25:35.207+00:00

    Hi @Vitor Dias Mariano ,

    For ERR_TOO_MANY_REDIRECTS error, you can refer to the following solutions:

    • Delete cookies on that specific site.
    • clear server and browser cache.

    If clearing the cache didn’t work, then you’ll want to see if you can determine the nature of the redirect loop. This free online Redirect Checker tool can help provide some further analysis into what might be going on.

    Best regards,
    Sam


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.