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
精彩评论