开发者

url rewrite for folder/base only

        <rule name="updates" stopProcessing="true">
            <match url="updates/" ignoreCase="true" />
            <action type="Rewrite" url="update.cfm" />
        </rule>

this works ok, except any pages under updates like updates/signin.cfm also redirects to update开发者_运维问答.cfm. How do I get it to apply only when the url ends with updates/


URL Rewrite uses RegEx in its matching expressions, so at the end of the match, make sure you delineate it to be 'the end of line'. My Regex is rusty, but maybe its

"updates/$" ? Also, you might have to escape the / in the match.

http://www.regular-expressions.info/anchors.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜