lidia_defreitas

web.config routes mvc for angular

Jan 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <system.webServer>
  2.     <rewrite>
  3.       <rules>
  4.         <rule name="AngularJS Routes" stopProcessing="true">
  5.           <match url=".*" />
  6.           <conditions logicalGrouping="MatchAll">
  7.             <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  8.             <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  9.             <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
  10.           </conditions>
  11.           <action type="Rewrite" url="/configuracoes" />
  12.         </rule>
  13.       </rules>
  14.     </rewrite>
Add Comment
Please, Sign In to add comment