Guest User

Guest User

  • Tech Writer
  • 611
  • 129.3k

URL Rewriting -

Jul 24 2019 2:10 AM
URL Rewriting - Append page name along with query string in.
 
not run code  along with query string in  URL  please help me
 
<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="&amp;?(token=[^&amp;]+)&amp;?" />
<add input="{REQUEST_URI}" pattern="reservations/reservation.aspx" negate="true" />
</conditions>
<action type="Redirect" url="reservations/reservation.aspx?{C:1}" appendQueryString="true" redirectType="Found" />
</rule>
 
 
 

Answers (1)