I am using Tuckeys UrlRewrite filter for getting clean urls on my java application. I redirect all the requests to a certain resource to a spring request dispatcher. Here is my original rule
<rule>
<from>(.*)$</from>
<to>$1.htm</to>
</rule>
Problem is that accessing .js, .css files also seem to be redirecting. I want to know how to write a rule with a negation for any extensions. So the rule should match all single words (like login, logout) and not match for words with extensions (like login.jsp, image.jpg, sc.js ).