且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将.htaccess文件设置为web.config时出现内部服务器错误

更新时间:2022-11-08 19:58:43

/>
< action type =Rewriteurl =/ index.php / {R:1}appendQueryString =true/>
< / rule>

< / rules>
< /重写>
< httpErrors>
< remove statusCode =404subStatusCode = - 1/>
< error statusCode =404path =/ somedir / oops404 .htmresponseMode =ExecuteURL/>
< / httpErrors>
< /system.webServer>
< system.web>
< customErrors mode = 关闭/>
< /system.web>
< / configuration>
" /> <action type="Rewrite" url="/index.php/{R:1}" appendQueryString="true" /> </rule> </rules> </rewrite> <httpErrors> <remove statusCode="404" subStatusCode="-1" /> <error statusCode="404" path="/somedir/oops404.htm" responseMode="ExecuteURL" /> </httpErrors> </system.webServer> <system.web> <customErrors mode="Off" /> </system.web> </configuration>


错误消息非常清楚:应用程序无法读取位于以下位置的文件:
The error message is quite clear: the application is unable to read the file located at:
D:\Inetpub\vhosts\sp-tapi.in\clean-note.rudra-infotech.com\test\web.config



检查该文件的NTFS权限是否授予对IIS_IUSRS组的读取权限,或者是哪个帐户哟你的AppPool设置为。


Check that the NTFS permissions for that file grant read access to the IIS_IUSRS group, or whichever account your AppPool is set to run as.