Thursday, January 16, 2014

URL Redirect/Rewrite when opened from Mobile Browser

<rule name="Mobile Redirect" stopProcessing="true">
          <match url="^home/Account/$" ignoreCase="true" />
          <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
            <add input="{HTTP_USER_AGENT}" pattern="midp|mobile|phone" />
            <add input="{HTTP_X-Device-User-Agent}" pattern="midp|mobile|phone" />
            <add input="{HTTP_X-OperaMini-Phone-UA}" pattern="midp|mobile|phone" />
          </conditions>
          <action type="Redirect" url="http://bbl.fecundtechno.com/mobile/index.html" appendQueryString="false" />
        </rule>

No comments:

Post a Comment

Opps Part 1 : Abstraction

  Abstraction in C# is a fundamental concept of object-oriented programming (OOP) that allows developers t...