codeigniter 不会去文件夹
codeigniter not going to folder
我在本地主机上使用 codeigniter 创建了一个新网站,它运行成功,但我将其上传到 plesk 主机并为其创建了一个 web.config
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
我的项目成功运行,但是当我转到内部文件夹时出现此错误
404 Page Not Found
The page you requested was not found.
我不太确定。
- 在您的本地计算机上执行相同的 Web 配置并检查一下。
- 确保您递归地为所有内部文件夹设置了权限 0755。对于测试,您可以授予所有内部文件夹 0777 的完全权限并进行检查。确保恢复到必要的权限。
我在本地主机上使用 codeigniter 创建了一个新网站,它运行成功,但我将其上传到 plesk 主机并为其创建了一个 web.config
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
我的项目成功运行,但是当我转到内部文件夹时出现此错误
404 Page Not Found
The page you requested was not found.
我不太确定。
- 在您的本地计算机上执行相同的 Web 配置并检查一下。
- 确保您递归地为所有内部文件夹设置了权限 0755。对于测试,您可以授予所有内部文件夹 0777 的完全权限并进行检查。确保恢复到必要的权限。