HTTP to HTTPS redirect doesn't work.

WindowsGeek 21 Reputation points
2021-09-26T06:52:10.647+00:00

Hello,
I used https://tecadmin.net/iis-redirect-http-to-https/ tutorial to redirect all HTTP requests to the HTTPS, but it doesn't work. When I browse "http://my_website.com" then it showed me below error:
135267-https-iis.png

How can I solve it?

Thank you.

Internet Information Services
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. T. Kujala 8,686 Reputation points
    2021-09-26T07:58:16.393+00:00

  2. Sam Wu-MSFT 6,876 Reputation points Microsoft Vendor
    2021-09-27T01:50:53.707+00:00

    Hi @WindowsGeek

    You need to enable ssl if you want to use https in iis.

    1. Open Internet Information Services Manager.
    2. In the Connections panel on the left, under Sites, select the site for which you want to enable SSL.
    3. In the Actions panel on the right, under Edit Site, select Bindings.
    4. In the Site Bindings dialog box: click Add. then in the Add Site Binding dialog box: in Type, select https. In SSL certificate, select an appropriate certificate from available choices. click OK, click Close.
    5. In the Connections panel on the left, under Sites, double-click SSL Settings.
    6. In the SSL Settings page: select the Require SSL check box, under Client certificate, select Accept.
    7. In the Actions panel on the right, click Apply to save your changes.

    More information you can refer to this link: How to Set Up SSL on IIS.


    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

  3. WindowsGeek 21 Reputation points
    2021-09-28T08:26:40.35+00:00

    Hello,
    Thank you so much for your great help.
    I did all of those steps:
    135739-ssl-1.png

    135833-ssl-2.png
    But, as I said, I had a problem!


  4. WindowsGeek 21 Reputation points
    2021-09-29T06:08:54.68+00:00

    Hello,
    No idea?


  5. Philip nicoles 371 Reputation points
    2021-10-06T07:01:07.167+00:00

    Same problem happens with me in Last Month, I use Rewrite code on my website and it redirects to HTTPS and not HTTP. If you need to learn in deep , you refer this link of 301 Redirect HTTP to HTTPS :

    https://stackoverflow.com/questions/29029049/best-practice-301-redirect-http-to-https-standard-domain

    I hope this will clear your query, If yes please click "Accept Answer" and up vote it.

    0 comments No comments