我有像http://mydomain/blog/posts/2015/february/fill-and-follow/这样的旧网址
现在新的网址就像 http://mydomain/blog/posts/fill-and-follow/
因此,对于上述情况,我想编写重写规则。我在 UrlRewriting.config 中使用如下规则。
<add name="urlRedirect1"
virtualUrl= "http://mydomain/blog/posts(.*)"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="http://mydomain/blog/posts/$1/"
ignoreCase="true"
redirect="Application"
redirectMode="Permanent" />
实际的规则是什么?