<div>I'm having an issue with setting up a rule for redirecting URIs within an application. What I want to do is redirect everything except what I've specified in the patterns below. ie. if the URI contains page.aspx or any page within the views folder,
I don't want the user redirected.</div> <div></div> <div>Any help would be appreciated.</div> <div></div> <div> <div><rule name="General Redirect" patternSyntax="ECMAScript" stopProcessing="true" enabled="true"></div><div><match url=".*" ignoreCase="true" /></div> <div><conditions logicalGrouping="MatchAll" trackAllCaptures="false"></div><div><add input="{REQUEST_URI}" pattern="^modules\/page\.aspx$" negate="true" /></div><div><add input="{REQUEST_URI}" pattern="^modules\/views$" negate="true" /></div> <div></conditions></div> <div><action type="Redirect" url="http://google.com" appendQueryString="false" redirectType="Permanent" /></div><div></rule></div> </div>
↧