<?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’ );
百度了好多文章也没见结果,最后在一个问答中找到答案:
只要将index.php这个文件用新的index.php替换掉就可以了。如果替换了以后还是不行,那么你还要进入模板文件中查看下index.php文件是否被篡改,如果被篡改了同样需要将该index.php替换掉,这样你的网站就可以恢复正常了。