How to redirect http to https and www to non-www via web.config?

后端 未结 1 1914
暖寄归人
暖寄归人 2021-01-05 07:39

I would like to use web.config to redirect all requests on my asp.net site to https:// with non-www. That is:

http://
http://www
https://www
<
1条回答
  •  北荒
    北荒 (楼主)
    2021-01-05 08:05

    You need to add second rule:

     
         
         
             
         
         
     
    

    You just need to replace sitename.com with your domain name

    0 讨论(0)
提交回复
热议问题