Cakephp在IIS中不工作?

Cakephp在IIS中不工作?,cakephp,iis,cakephp-3.0,iis-10,Cakephp,Iis,Cakephp 3.0,Iis 10,我对IIS上的Cakephp版本3.2有一个问题。但是,Cakephp 2.2版在相同的设置环境中运行良好。不知道为什么 这是我的web.config文件 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule n

我对IIS上的Cakephp版本3.2有一个问题。但是,Cakephp 2.2版在相同的设置环境中运行良好。不知道为什么

这是我的
web.config
文件

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Exclude direct access to webroot/*"
                  stopProcessing="true">
                    <match url="^webroot/(.*)$" ignoreCase="false" />
                    <action type="None" />
                </rule>
                <rule name="Rewrite routed access to assets(img, css, files, js, favicon)"
                  stopProcessing="true">
                    <match url="^(img|css|files|js|favicon.ico)(.*)$" />
                    <action type="Rewrite" url="webroot/{R:1}{R:2}"
                      appendQueryString="false" />
                </rule>
                <rule name="Rewrite requested file/folder to index.php"
                  stopProcessing="true">
                    <match url="^(.*)$" ignoreCase="false" />
                    <action type="Rewrite" url="index.php"
                      appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

无论我们在URL中键入什么,我都会得到以下响应

注意

我尝试了SO中的所有相关链接&我在尝试了所有提供的解决方案后发布了此链接,但没有一个有效

更多信息:

IIS版本-10 Cakephp-3.2


我再次重申,Cakephp 2.2运行良好。

我想回答我自己关于如何解决问题的问题。问题不在于web.config,而在于.gitignore


默认情况下,它将
供应商
目录添加到.gitignore。由于它没有添加到git中,因此发生了这些错误。

您应该检查错误日志并发布相关消息。