IIS 7.5 URL Rewrite rule to handle request based on user agent

前端 未结 1 945
耶瑟儿~
耶瑟儿~ 2021-01-06 02:30

I have written a rule to redirect request based on user agent.

The rule is set to redirect default requests (not mobile) to Domain1 and requests from mo

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-06 03:05

    In your Mobile UA redirect rule, the conditions logical grouping is the one by default: MatchAll

    I don't think a phone having a HTTP_USER_AGENT matching ^.*BlackBerry.*$ will also match .*Mobile.*Safari. So you need to change the logical grouping to MatchAny.

    You rule would then be:

    
      
      
        
        
      
      
    
    

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