Friday, 16 September 2016

Remove from First Page from URL


    <rewrite>

      <rules>
        <rule name="MyRule" patternSyntax="Wildcard">
          <match url="homepage" />
          <action type="Rewrite" url="Login.aspx" />
        </rule>
        <rule name="FirstRedirect" stopProcessing="true">
          <match url="^(.*\/)*Login\.aspx$" />
          <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_METHOD}" negate="true" pattern="^POST$" />
          </conditions>
          <action type="Redirect" url="{R:1}" redirectType="Permanent"/>
        </rule>
     
      </rules>

    </rewrite>