更改WordPress站点URL后无法登录 时间:2018-01-22 作者:shiba 我更改了我的live WordPress网站URLhttps://mywebsite.com 到localhost/myproject 仅用于测试目的。但现在我无法再次登录我的网站,因为登录后,它会将我重定向到https://localhost/myproject/wp-login.php. 还有一个错误This site can’t be reached localhost refused to connect.如何将URL更改回正常状态? 1 个回复 SO网友:Ashok Ladumor 试试这个First method is 在wp config中添加上述代码。phpdefine(\'WP_HOME\',\'http://localhost/myproject\'); define(\'WP_SITEURL\',\'http://localhost/myproject\'); Second method is 逐个评论插件并检查。成功登录后,更新permalink。 结束 文章导航