开发者

Why should define('RELOCATE',true) be removed from wordpress config?

It seems that using the define('RELOCATE') command is a convenient tool to perform site development using a local database and webserver, then to upload into production. Otherwise, its necessary to perform SQL REPLACE commands to update all开发者_开发百科 the URLs in the posts, media and other content.

The Wordpress codex specifically states that it must be removed, but occasionally after removing, the links revert back to the dev server. Is there a reason for removal? it doesn't seem that security should be the issue, perhaps performance?

Thanks, Jonathan


The reason you remove it is because define('RELOCATE',true); will point every visitor of your site to the admin login.

If you are still getting re-directed to the dev server then you need to re-configure your database.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜