1.去宝塔检查index.php
20241007200555303-IMG_20241007_200541.jpg (131.84 KB, 下载次数: 0)
下载附件
保存到相册
半小时前 上传
很巧,一打开就发现问题了
怎么解决呢,改回原来的即可这里贴上一份默认的首页代码
?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 __DIR__ . '/wp-blog-header.php';
结尾
如果有之前的网站备份,也可以直接回档
xmlrpc.php文件权限设置为000
然后开启宝塔nginx防火墙
(免费版也可以,开启之后问题应该就不大了)
原文地址https://www.sakuraidc.cc/forum-post/1408.html