Advertisement
hecrus

Remove trailing slash

Sep 17th, 2021
1,278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.40 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement