hecrus

Remove trailing slash

Sep 17th, 2021
884
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <rule name="Remove trailing slash" stopProcessing="true">
  2.     <match url="(.*)/$" />
  3.     <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
  4.         <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  5.         <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  6.     </conditions>
  7.     <action type="Redirect" url="{R:1}" redirectType="Temporary" />
  8. </rule>
  9.  
RAW Paste Data