在我修改了Index.php的编码后,我的wordpress网站找不到

时间:2018-01-26 02:13:24

标签: php wordpress url

我将下面的编码插入到WP Root中的index.php中:

update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );

它无法改变我的wordpress网址,但将我的wordpress转为404找不到。我无法访问我的wordpress管理员,曾尝试过login.php也一样。 我确实删除了编码,但网站仍然保持不变。

1 个答案:

答案 0 :(得分:0)

你读过这个,Changing The Site URL

没有提到你必须编辑index.php。

您可以在编辑代码后尝试清除缓存,然后尝试重新加载您的网站。

相关问题