URL rewriting with IIS issue

ok, so I have a url rewrite setup so that if I enter domain.com/cat/page name it will redirect.

But I have a integrated component (CKedit/n1ed) and if I upload images to the base url of /assets then it thinks I’m trying to submit to the redirect when I’m not. I basically want to somehow change the rule so that if I send something that ends in an image name it shouldn’t apply the rewrite:
domain.com/cat/somepagename should work
domain.com/assets/filename.jpg should not work


Try adding this to your webconfig file before your closing conditions tag:

...
<add input="{URL}" negate="true" pattern="\.jpg$" />
</conditions>