Zend framework Zend Framework Rewrite不适用于IIS7下的某些URL

Zend framework Zend Framework Rewrite不适用于IIS7下的某些URL,zend-framework,iis-7,rewrite,Zend Framework,Iis 7,Rewrite,我最近将一个基于Zend framework 1编写的网站从Apache迁移到IIS7。我按照Rob Allen的指示将规则导入IIS 除了使用以下格式的URL外,所有内容都可以正常工作: www.example.com/products/download/productname-4.0.0.zip 它显示的是IIS 404错误页面,而不是应用程序中的自定义404页面。我怀疑这是IIS7配置问题 这里有没有人有类似的经验?这里有一个web.config,我在IIS7 for Zend Frame

我最近将一个基于Zend framework 1编写的网站从Apache迁移到IIS7。我按照Rob Allen的指示将规则导入IIS

除了使用以下格式的URL外,所有内容都可以正常工作:

www.example.com/products/download/productname-4.0.0.zip

它显示的是IIS 404错误页面,而不是应用程序中的自定义404页面。我怀疑这是IIS7配置问题


这里有没有人有类似的经验?

这里有一个web.config,我在IIS7 for Zend Framework中使用它

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1" stopProcessing="true">
                    <match url="^.*$" />
                    <conditions logicalGrouping="MatchAny">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                    </conditions>
                    <action type="None" />
                </rule>
                <rule name="Imported Rule 2" stopProcessing="true">
                    <match url="^.*$" />
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>