1

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

4

1 回答 1

0

您删除它的原因是因为define('RELOCATE',true);会将您网站的每个访问者指向管理员登录。

如果您仍然被重定向到开发服务器,那么您需要重新配置您的数据库。

于 2010-09-16T16:49:19.363 回答