How to redirect HTTP to HTTPS in MVC application (IIS7.5)

前端 未结 11 2105
情歌与酒
情歌与酒 2020-11-29 21:39

I need to redirect my HTTP site to HTTPS, have added below rule but I am getting 403 Error when tried using http://www.example.com, it works fine when I type https://www.exa

11条回答
  •  眼角桃花
    2020-11-29 21:55

    This answer is not exactly for OP but for those who could not make it work like me and have come across this (and although I know there is 403 not 404 error in OP), please refer to this answer if you are getting 404 instead: https://stackoverflow.com/a/6962829/5416602

    Please check that you have binding for HTTP port (80) and not only HTTPS port (443) in your IIS

提交回复
热议问题