Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <rule name="Rewriteaspx" stopProcessing="true">
  2. <match url="reservations/reservation.aspx$" />
  3. <action type="Redirect" url="reservations/reservation.aspx" redirectType="Permanent" />
  4. </rule>
  5. <rule name="removeextension" enabled="true">
  6. <match url="reservations/reservation" negate="false" />
  7. <conditions>
  8. <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
  9. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
  10. <add input="{URL}" pattern="(.*).(.*)" negate="true" />
  11. </conditions>
  12. <action type="Rewrite" url="reservations/reservation.aspx" />
  13. </rule>
  14. <rule name="Rewriteaspx1" stopProcessing="true">
  15. <match url="reservations/reservation" />
  16. <conditions trackAllCaptures="true">
  17. <add input="{QUERY_STRING}" pattern="&?(token=[^&]+)&?" />
  18. <add input="{REQUEST_URI}" pattern="reservations/reservation.aspx" negate="true" />
  19. </conditions>
  20. <action type="Redirect" url="reservations/reservation.aspx?{R:1}" appendQueryString="false" redirectType="Found" />
  21. </rule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement