简体   繁体   English

将域名从自定义网站转移到新主机上的WordPress,并使用另一个域上的现有WordPress文件

[英]Transfer domain from custom website to WordPress on new hosting with existing WordPress files on (yet) another domain

Started work at a new company who have a Custom PHP-WordPress hybrid (monster of a..) site. 在一家拥有Custom PHP-WordPress hybrid(a..monster)网站的新公司开始工作。 I will be moving the entire site to WordPress, and also to a new host (probably Bluehost at this stage). 我将把整个站点移到WordPress,也移到一个新主机(现阶段可能是Bluehost)。 I am currently developing a site on my personal domain, built on WordPress, with plugins, extensions etc. How can I; 我目前正在我的个人域上开发一个基于WordPress的网站,并带有插件,扩展名等。 1. Transfer the domain from the custom PHP site to the new hosting, and... 2. Transfer all the WordPress files/plugins from my personal domain to the new hosting, all without downtime. 1.将域从自定义PHP站点转移到新的主机,然后... 2.将所有WordPress文件/插件从我的个人域转移到新的主机,而无需停机。

I have read through documentation, such as https://www.bluehost.com/blog/wordpress/faq-how-do-i-move-my-wordpress-website-to-bluehost-1787/ , however I have the added hurdle of an existing domain transfer plus existing WordPress files to transfer. 我已经阅读了文档,例如https://www.bluehost.com/blog/wordpress/faq-how-do-i-move-my-wordpress-website-to-bluehost-1787/ ,但是我已经添加了现有域名转移以及现有WordPress文件转移的障碍。

Any ideas or help? 有什么想法或帮助吗? Thanks in advance! 提前致谢!

1) The domain transfer is done on your domain registrar. 1)域名转让在您的域名注册商处完成。 You simply update the dns servers to the ones provided by your new host. 您只需将dns服务器更新为新主机提供的服务器即可。 The change takes about 2-24 hours to propagate. 更改大约需要2-24小时才能传播。

2) To move wordpress sites you can simply move the files and move the database and then modify the config file to contain your new DB credentials. 2)要移动wordpress网站,您只需移动文件并移动数据库,然后修改配置文件以包含新的数据库凭据即可。 In that state unfortunately you cannot test the site with a test url, so you will have to change the site urls on the options table to that of the test url. 不幸的是,在这种状态下,您无法使用测试URL测试站点,因此您必须将选项表上的站点URL更改为测试URL。 Once you verify that the site is working properly, you once again change the urls to the proper domain, and once again you change your dns servers on your registrar to those provided by the new host 确认站点正常运行后,再次将URL更改为正确的域,然后再次将注册器上的dns服务器更改为新主机提供的DNS服务器。

!! !! Do not forget to check if you have to migrate email accounts too. 不要忘记检查您是否也必须迁移电子邮件帐户。 This will be a bit more involved. 这将涉及更多。

EDIT: The above directions suppose that your servers use some kind of management panel that handles dns in a master/locally managed way, like plesk or cpanel with DNS servers provided by your host. 编辑:上面的说明假定您的服务器使用某种管理面板以主/本地管理方式处理dns,例如使用主机提供的DNS服务器的plesk或cpanel。 If you use a vanilla non-managed server and your server is your actual DNS server, you will probably have to do some more work to setup your server to work as a dns master, or use your registrar's DNS servers and define custom dns entries (www, ., webmail, smtp etc) right at your registrar's panel, including MX, _dmarc etc for your email. 如果您使用普通的非托管服务器,并且该服务器是实际的DNS服务器,则可能需要做更多的工作才能将服务器设置为dns主服务器,或者使用注册商的DNS服务器并定义自定义dns条目( www,。,webmail,smtp等),直接在您的注册商面板上,包括MX,_dmarc等即可获取您的电子邮件。

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

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