I have the following URL rewrite setup inside web.config working as I would like.
<rule name="Product Rewrite" stopProcessing="true">
<match url="^products/([^$]+)/([^$]+)" />
<action type="Rewrite" url="products?durl={R:1}&purl={R:2}" />
</rule>
Now I need to exclude any URLs that contain or end with /action/edit i.e. products/action/edit
I understand that I will need a conditions block, but I am not sure what to write.
Any help would be greatly appreciated.
Add a condition like below, negate true ensures it matches everything except action/edit
<conditions>
<add input="{URL}" negate="true" pattern="action/edit" />
</conditions>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With