I have a website that I would like to stop the mobile redirect rule from executing... This website is based on DotNetNuke 6.2.1 (I do not believe that makes a difference though) running on IIS 6.
In the .webconfig file I have the following rule in place:
<rule name="MobileRedirectRule" enabled="true" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_USER_AGENT}" pattern="iphone|ipad|android|phone|mobile|midp" /> <add input="{HTTP_REFERER}" pattern="m.ifs.intuit.com|www.thedomainofthesite.com" negate="true" /> </conditions> <action type="Redirect" url="https://m.ifs.intuit.com/mw/04333/login.do" redirectType="Found" /> </rule>
In this rule the entire site is being redirected to the following URL:
https://m.ifs.intuit.com/mw/04333/log...
However, there are certian pages that this client does not want to have redirected. They want the entire desktop version to display. How would I alter the above rule to disable a certain URL from using the rule to redirect to the mobile version of the site.
For example...
If the user goes to the home page of the site located here: www.thedomainofthesite.com would redirect to https://m.ifs.intuit.com/mw/04333/log...
But if the user goes here: www.thedomainofthesite.com/about or www.thedomainofthesite.com/page3, ect. the rule is ignored?
I tried to duplicate this rule and use www.thedomainofthesite.com and the site did not redirect properly and caused a 500 error... so I was unsure of how you could only point the home page and not other pages within the site... Thanks for any help you can provide.