urlrewriting.net + help with rule for rewrite

Izi

Izi

Soldato
Joined
9 Dec 2007
Posts
2,718
trying to achieve:

/news/01/01/2009/the-name-of-the-article

<rewrite url="^/news/([0-32])/([0-12])/([0-2500])/(.*)$" to="/Test.aspx" processing="stop"/>

what am I doing wrong with the number ranges?

EDIT: I see, numeric ranges don't work like that. If anyone could help with this that would be brill
 
Last edited:
this works:


<rewrite url="^/news/[0-9]|[0-9]|[0-9]|[0-9]/[0-9]|[0-9]/[0-9]|[0-9]/(.*)/(.*)$" to="/Test.aspx" processing="stop"/>

however something a little more elegant is surely out there!
 
Back
Top Bottom