iis url redirect http to non www https

前端 未结 5 955
半阙折子戏
半阙折子戏 2020-12-03 05:42

i need to redirect from

www.domain.de to https://domain.de -works

http://www.domain.de to https://domain.de -works

http://domain.de to https://domain

5条回答
  •  醉酒成梦
    2020-12-03 06:11

    If you want to redirect www to non www:

    1. Add DNS entry for www.yourdomain.com to refer to your server's public IP
    2. Then you need to Edit Bindings of your website and "Add Binding" www.yourdomain.com
    3. Add a rewrite rule to your website using iis:
    
      
      
        
      
      
    
    

    Reference: http://madskristensen.net/post/url-rewrite-and-the-www-subdomain

提交回复
热议问题