Really struggling with some rules I need to write.
Bascially I want /news/ to go to one page and /news/a-news-story to go to another.
<add name="News" virtualUrl="^/news/"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/News.aspx?s=/news/"
ignoreCase="true" />
<add name="NewsArticle" virtualUrl="^/news/([0-9]+)/([0-9]+)/([0-9]+)/(.+)/([0-9]+)"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/ArticleView.aspx?s=/news/article/&ArticleID=$5"
ignoreCase="true" />
these rules work independently but when they are both in they stop working. How to I fix this?
Bascially I want /news/ to go to one page and /news/a-news-story to go to another.
<add name="News" virtualUrl="^/news/"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/News.aspx?s=/news/"
ignoreCase="true" />
<add name="NewsArticle" virtualUrl="^/news/([0-9]+)/([0-9]+)/([0-9]+)/(.+)/([0-9]+)"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/ArticleView.aspx?s=/news/article/&ArticleID=$5"
ignoreCase="true" />
these rules work independently but when they are both in they stop working. How to I fix this?