Iis 使用web.config为查询字符串中的多个变量重写url

Iis 使用web.config为查询字符串中的多个变量重写url,iis,web-config,friendly-url,Iis,Web Config,Friendly Url,我试图使用web.config创建frindly URL,它必须从1个变量重写为(可能)2个变量,如果是目录名,则忽略重写。所以我有一个网址: http://www.domain.com/2014/ - Where 2014 is a folder. http://www.domain.com/2014/publications/ - It's one of the possible URLs http://www.domain.com/2014/publications/news/ - Ano

我试图使用web.config创建frindly URL,它必须从1个变量重写为(可能)2个变量,如果是目录名,则忽略重写。所以我有一个网址:

http://www.domain.com/2014/ - Where 2014 is a folder.
http://www.domain.com/2014/publications/ - It's one of the possible URLs
http://www.domain.com/2014/publications/news/ - Another possible URL
而真正的URL是

http://www.domain.com/2014/
http://www.domain.com/2014/?page=publications
http://www.domain.com/2014/?page=publications&subpage=news
我正在尝试此web.config,但出现错误500

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Friendly 2">
                    <match url="^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$" ignoreCase="false" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="/2014/index.php?page={R:1}&subpage={R:2}" appendQueryString="false" />                  
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

我错过什么了吗

提前谢谢