【发布时间】:2019-03-26 17:25:20
【问题描述】:
我尝试在 Wordpress 中上传项目,在本地计算机上创建后,我开始迁移到主主机。所以我遵循以下步骤: 1- 迁移数据库; 2-粘贴代码; 3 - 安装主题和插件。所以当我尝试激活插件时:
返回这个奇怪的错误,就像从我的“wp-admin”文件夹中再次编写一些代码 index.php 并让它们像这样:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
之后,当我重新加载页面时,返回 500 错误。我尝试修改我的 .htaccess 在管理配置中获取页面的方式,但没有任何效果。
左边是Wordpress如何写页面,右边是正确的结构。
有同样问题的人吗?
提前致谢!
【问题讨论】:
-
HTTP 500 是一般的服务器端错误消息。就其本身而言,它基本上无法用于故障排除。每当您看到这一点时,您的第一步应该是检查错误日志以获取更多详细信息。
标签: php wordpress apache .htaccess