简体   繁体   中英

Url rewriting rule not working

I have the following URL rewrite rule that doesn't get activated when I hit the following URL:

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\$(.*)" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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