500 內部伺服器錯誤 - GoDaddy flesk 伺服器



我开发了WordPress网站,运行良好。当我将其移动到GoDaddy flesk server并尝试create/edit WordPress帖子或页面时 - 它给出了以下错误:

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

我的.htaccess文件是:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule index.php [L]
</IfModule>
# END WordPress

web.config文件是:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>  
<rewrite>
<rules>
<rule name="WordPress Rule" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

任何帮助将不胜感激。谢谢

删除"# END WordPress"前后的额外/空换行符。它应该可以解决问题。

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule index.php [L]
</IfModule>
# END WordPress

最后,我找到了解决方案。只是我在web.config文件中添加了<httpErrors errorMode="Detailed" existingResponse="PassThrough"/>:获取详细错误

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
    <httpErrors errorMode="Detailed" existingResponse="PassThrough"/>
<rewrite>
<rules>
<rule name="WordPress Rule" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" existingResponse="PassThrough"/>
    </system.webServer>
</configuration>

它给出了以下致命错误;

Fatal error: Class ‘MPCETemplate’ not found in C:XXXXXXXXXXXXwp-contentpluginsmotopress-content-editorincludesceLibrary.php on line 1989

解决方案:实际上,问题出在PHP代码中。 Library.php motopress-content-editor插件中缺失。

只是我登录了WordPress管理面板并停用了此motopress-content-editor插件。它已经开始工作了。

最新更新