iis url redirect http to non www https

前端 未结 5 946
半阙折子戏
半阙折子戏 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:22

    If you want something more flexible than for your three examples, change your HTTP_HOST pattern to : \w+\.\w+$. That would work for all three examples plus anything else, like subdomain.abcdef.domain.de.

    If you use this regex either encase it in parenthesis or change C:1 to C:0 in your action.

提交回复
热议问题