简体   繁体   English

网址重写规则不起作用

[英]Url rewriting rule not working

I have the following URL rewrite rule that doesn't get activated when I hit the following URL: 我有以下URL重写规则,当我单击以下URL时未激活:

http://www.oldurl.co.uk/2008/06/salaries http://www.oldurl.co.uk/2008/06/salaries

            <rule name="Test" stopProcessing="true">
                <match url="^http://www.oldurl.co.uk/20$(.*)" />
                <action type="Redirect" url="http://www.newurl.com/20{R:1}" /> 
            </rule>

Can any help please? 可以帮忙吗?

$ is special character denoting end-of-string. $是表示字符串结尾的特殊字符。 Escape this character: 转义此字符:

<match url="^http://www.oldurl.co.uk/20\$(.*)" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM