2016-07-05 50 views
0

我创建了一个新网站,本地主机上的笨并successfuly工作,但我把它上传到的Plesk主机和它笨不会夹

<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> 

我projrct创建一个web.config工作成功,但当我去内部文件夹我得到这个错误

404 Page Not Found 

The page you requested was not found. 

回答

1

我不太确定这一点。

  1. 在您的本地机器上执行相同的网络配置,并检查了这一点。
  2. 确保您有递归地为所有内部文件夹设置的权限0755。对于一个测试可能是你可以给所有内部文件夹的完整权限为0777并进行检查。确保您恢复到必要的权限。