WordPress后台地址被改导致无法登陆后台的简单解决方法
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>本文实例讲述了WordPress后台地址被改导致无法登陆后台的简单解决方法。分享给大家供大家参考,具体如下:</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
这几天博客刚刚建立好,于是就是注册了个顶级域名,然后就是去后台绑定了站点和Wordpress的URL,用了一天下来很正常,没想到在晚上时出现了问题。</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
在下午的时候注册了七牛云存储,打算把大数据镜像到七牛上,于是就下载了一个七牛 For WordPress的插件,安装后启动发现启动不正常,才发现由于博客是搭建在SAE上面的,所以对于官方的插件不能使用,但是很多代码已经被改过了,导致网站一直无法访问,删除插件也没办法,最后在网络上找到一个办法:</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
打开网站根目录下的wp-config.php文件,输入这一行代码<br>
</p>
<div style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<div style="margin: 0px; padding: 0px; outline: none; float: right; line-height: 25.2px; font-size: 14px;">
<span style="line-height: 25.2px; cursor: pointer;"><u>复制代码</u></span>
</div>
<p>
代码如下:</p>
</div>
<div id="phpcode1" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
define('RELOCATE',true);</div>
<p>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>解释下这行代码,当RELOCATE的值为true时,就会在你登录后台的时候把Wordpress(后台地址)URL改为你当前输入的,这样就可以不用修改数据来重置地址。</span></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
此方法很简便,供一些因为无法地址原因无法进入网站的友友使用,过些日子还会给出把Wordpress和七牛云存储完美结合的文章。</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
希望本文所述对大家基于wordpress的网站建设有所帮助。</p>
頁:
[1]