IIS7 url rewrite module, rewrite problem - the page views increase more then once

Posted by stacker on Stack Overflow See other posts from Stack Overflow or by stacker
Published on 2010-06-02T00:24:59Z Indexed on 2010/06/02 1:03 UTC
Read the original article Hit count: 415

This is my rewrite regex: ^([0-9]+)|/(.*)$ for rewrite 1234\article-name to article.aspx?id={R:1}.

The problem is: if the url is 1234, the page views count is increased with 1.
but if the url is: 1234/article-name the page views count increased in 6.

Any idea what is the problem and how to fix it? maybe the problem is with the regex.

© Stack Overflow or respective owner

Related posts about regex

Related posts about iis7