Friday 15 August 2014

regex - IIS rewrite mobile detection -


OK, I am trying to write / rewrite the mobile in IIS. If I remove the conditions, then rewrite the work. However, once I put a little into mobile detection, then this is not targeted to mobile device (tested on an iPhone and Android) Is there any advice? Reggae used is from:

  & lt; Rule Name = "Mobile Detect" Pattern Syntax = "Accurate Match" Stop Processing = "True" & gt; & Lt; Mail url = "customer-support" ignore = "true" reject = "true" /> & lt; Conditions Logical Group = "Matching" & gt; & Lt; Input = "{HTTP_USER_AGENT}" pattern = "mobile | IP (hen | AD | advertisement) | Android | Blackberry | iMobile | Kindle | NetFrint | Silk-Accelerated | (HPW | Web) OS | Fenek | Minim | Opera M (OB | Ini) | Blazer | Dolphin | Dolphin | Skyfire | Zune "/> & Lt; / Status & gt; & Lt; Action Type = "rewrite" url = "Mobile / Customer Support" /> & Lt; / Rules & gt;   

Any help is greatly appreciated.

The problem was that Pattern Syntax "ECMAScript" Needs to be set to

No comments:

Post a Comment