IIS URL Rewrite for redirect to FQDN

前端 未结 1 1459
故里飘歌
故里飘歌 2021-01-06 03:48

I am trying to figure out the best URL rewrite rule to accomplish the following.

http://intranet/sites/default.aspx rewrite to http://intranet.domain.com/sit         


        
1条回答
  •  青春惊慌失措
    2021-01-06 04:34

    This is the rule I would use:

    
        
        
            
            
        
        
    
    

    It will match any requested path (url="(.*)") on the host exactly named http://intranet (pattern="^intranet$" and with https been turned off) and redirect it to http://intranet.domain.com/{R:0} (where {R:0} is a back reference containing whatever path was requested).

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