I’ve done some url rewriting, always using the Intelligencia.UrlRewriter and it always worked fine. But now i want to achieve the following and somehow i can’t get it right.
i want:
http://www.mydomain.com/products/books > rewrite to http://www.mydomain.com/products.aspx?id=books
this works fine, because i can set my criteria to /products/..
http://www.mydomain.com/mybook > rewrite to http://www.mydomain.com/productdetails.aspx?id=mybook
and of course i want http://www.mydomain.com/newbooks.aspx to function normally
and these last 2 don’t work together.
is there a way i can tell my rewrite rule to only rewrite when there is no extension in my url? or is there an other trick?
Thanks in advance!
I thought i’d solve this old, unanswered question. The problem with the extensionless urls turned out to be some configuration problem in IIS. Our system admin fixed this by allowing these urls and after that the rewriter had no problems picking up and translating the URLS.