Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <rule name="Rewriteaspx" stopProcessing="true">
- <match url="reservations/reservation.aspx$" />
- <action type="Redirect" url="reservations/reservation.aspx" redirectType="Permanent" />
- </rule>
- <rule name="removeextension" enabled="true">
- <match url="reservations/reservation" negate="false" />
- <conditions>
- <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
- <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
- <add input="{URL}" pattern="(.*).(.*)" negate="true" />
- </conditions>
- <action type="Rewrite" url="reservations/reservation.aspx" />
- </rule>
- <rule name="Rewriteaspx1" stopProcessing="true">
- <match url="reservations/reservation" />
- <conditions trackAllCaptures="true">
- <add input="{QUERY_STRING}" pattern="&?(token=[^&]+)&?" />
- <add input="{REQUEST_URI}" pattern="reservations/reservation.aspx" negate="true" />
- </conditions>
- <action type="Redirect" url="reservations/reservation.aspx?{R:1}" appendQueryString="false" redirectType="Found" />
- </rule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement