Select Page

WordPress修改站点地址(URL)后无法登录后台 解决办法

WordPress修改站点地址(URL)后无法登录后台 解决办法

WordPress后台如果不小心修改了站点地址 (URL) 后导致无法正常再登录后台,这个情况有两种解决方法。

解决方法 一

登陆phpMyAdmin,选中WordPress数据库

找到wp-options这个数据表

找到option_name下的siteurl和home,将其将option_value修改为正确的值,即可。

解决方法 二

找到function.php

添加以下到文件的最末,根据自己情况调整

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

恢复正常后再将以上添加的代码删除,即可。

About The Author

Jackie Sung

Jackie Sung, also known by his nick-name KK, always strives for the best and learn from the best. Influenced by the age of Internet, for the last few years, in his spare time, he's been working and living as a Freelance Web Engineer/ Web Developer & Designer/ Amateur Photographer/ Husky Lover. The work he provides is of highest quality, fully-customized responsive, and tested in a wide range of devices, which typically covers both front-end (HTML5/ CSS3/ JavaScript) and back-end (WordPress as the CMS) responsibilities.

Leave a reply

电子邮件地址不会被公开。 必填项已用*标注

20 + 1 =

Pin It on Pinterest

Share This