Php 在服务器上安装ZF,上传应用程序,现在接收404?

Php 在服务器上安装ZF,上传应用程序,现在接收404?,php,zend-framework,iis,Php,Zend Framework,Iis,我最近在运行IIS7和PHP5的服务器上安装了Zend框架 我已将一个应用程序上载到使用ZF构建的服务器 索引控制器渲染良好;Zend_表单登录表单按预期构建,这意味着ZF安装工作正常 但是,当执行登录时,以及$this->\u helper->redirector('index','reseller')在索引控制器中被调用,我从服务器收到404消息 你知道这是什么原因吗 非常感谢 编辑: 我被重定向到的URL是(正确的): 请求的物理路径(这可能是问题所在!): (这是“分销商”控制器、“索引

我最近在运行IIS7和PHP5的服务器上安装了Zend框架

我已将一个应用程序上载到使用ZF构建的服务器

索引控制器渲染良好;
Zend_表单
登录表单按预期构建,这意味着ZF安装工作正常

但是,当执行登录时,以及
$this->\u helper->redirector('index','reseller')在索引控制器中被调用,我从服务器收到404消息

你知道这是什么原因吗

非常感谢

编辑:

我被重定向到的URL是(正确的):

请求的物理路径(这可能是问题所在!):

(这是“分销商”控制器、“索引”操作,是应用程序的一部分)。

通过将web.config XML文件添加到应用程序的公共目录中解决了这一问题:

<?xml version="1.0" encoding="UTF-8"?>
<!--<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1">
                    <match url="^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css|html)$)[\w\%]*$)?" />
                    <action type="Rewrite" url="/index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>-->
<configuration>
     <system.webServer>
         <rewrite>
             <rules>
                 <rule name="Imported Rule 1" stopProcessing="true">
                     <match url="^.*$" />
                     <conditions logicalGrouping="MatchAny">
                         <add input="{REQUEST_FILENAME}"
                             matchType="IsFile" pattern=""
                             ignoreCase="false" />
                         <add input="{REQUEST_FILENAME}"
                             matchType="IsDirectory"
                             pattern="" 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>


通过将web.config XML文件添加到应用程序的公共目录中解决了这一问题:

<?xml version="1.0" encoding="UTF-8"?>
<!--<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1">
                    <match url="^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css|html)$)[\w\%]*$)?" />
                    <action type="Rewrite" url="/index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>-->
<configuration>
     <system.webServer>
         <rewrite>
             <rules>
                 <rule name="Imported Rule 1" stopProcessing="true">
                     <match url="^.*$" />
                     <conditions logicalGrouping="MatchAny">
                         <add input="{REQUEST_FILENAME}"
                             matchType="IsFile" pattern=""
                             ignoreCase="false" />
                         <add input="{REQUEST_FILENAME}"
                             matchType="IsDirectory"
                             pattern="" 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>


您是否可以包括被重定向到的URL?这实际上是非常方便的信息,如果我们必须确定404为什么会显示:):)好的观点Aron-post更新!你能包括你被重定向到的URL吗?这实际上是非常方便的信息,如果我们必须确定404为什么会显示:):)好的观点Aron-post更新!
<?xml version="1.0" encoding="UTF-8"?>
<!--<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1">
                    <match url="^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css|html)$)[\w\%]*$)?" />
                    <action type="Rewrite" url="/index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>-->
<configuration>
     <system.webServer>
         <rewrite>
             <rules>
                 <rule name="Imported Rule 1" stopProcessing="true">
                     <match url="^.*$" />
                     <conditions logicalGrouping="MatchAny">
                         <add input="{REQUEST_FILENAME}"
                             matchType="IsFile" pattern=""
                             ignoreCase="false" />
                         <add input="{REQUEST_FILENAME}"
                             matchType="IsDirectory"
                             pattern="" 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>