简体   繁体   English

通过使用备份将暂存站点移到现场(Wordpress)

[英]Moving a staging site to live (Wordpress) by using a backup

I have a wordpress installation on let's say www.mysite.com. 我在www.mysite.com上安装了wordpress。 I used a plugin to create a staging site which is located under www.mysite.com/staging. 我使用插件创建了一个登台站点,该站点位于www.mysite.com/staging下。 After doing my changes I made a full backup including the database, went back to mysite.com and imported the backup. 完成更改后,我进行了包括数据库在内的完整备份,回到mysite.com并导入了备份。 End of story: error 500 everywhere and I cannot login to the backend anymore because I have an endless redirect: 故事结束:错误500到处都是,并且我无休止的重定向,因此我无法再登录到后端:

"Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace." “由于可能的配置错误,请求超出了10个内部重定向的限制。如有必要,请使用'LimitInternalRecursion'增加限制。使用'LogLevel debug'获得回溯。”

Everytime I call mysite.com it redirects to mysite.com/mysite/staging. 每次我呼叫mysite.com时,它都会重定向到mysite.com/mysite/staging。 I could ask my hoster to recover the website but I would like to understand what went wrong and how to fix it. 我可以要求托管人恢复该网站,但我想了解出了什么问题以及如何修复。

Assuming that you have correctly migrated your entire WP files and imported the database into your mysite domain, login to phpMyAdmin and locate your site mysite.com database. 假设您已正确迁移了整个WP文件并将数据库导入了mysite域,请登录phpMyAdmin并找到您的站点mysite.com数据库。 Open the tables and find wp-options. 打开表并找到wp-options。 Look for the following tables 查找下表

  1. siteurl 网站网址
  2. home

Update their values with your new URL which is mysite.com. 使用您的新URL mysite.com更新其值。

Now visit your site and you should see no redirect. 现在访问您的站点,您应该看不到重定向。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM