开发者

url rewrite intelligencia Conditions

I have using URL Rewriter Intelligencia,

I have teh following conditions:

<rewrite url="~/music-bands" to="~/TheBand.aspx"/>
开发者_StackOverflow中文版<rewrite url="~/gigs" to="~/gigs.aspx"/>
<rewrite url="~/music-cds-australia" to="~/CDS.aspx"/>
<rewrite url="~/new-music-videos" to="~/NewVideos.aspx"/>
<rewrite url="~/musicians-photo-gallery" to="~/Photo Gallery.aspx"/>
<rewrite url="~/blog" to="~/Blog.aspx"/>

However it seems to be writing everything with "blog" in it" so blog.css wont work. neither will _images/blog/blogs.png etc

Any idea how i can only make it rewrite www.mywebpage.com/blog and nothign else?


Replace the last rule with: <rewrite url="~/blog$" to="~/Blog.aspx" />

The dollar sign ($) when parsed as a .NET RegularExpresion denotes the end of the string; this will prevent /blog.css from hitting the rule above

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜