将 Wordpress 站点迁移到新域 [英] Migrating Wordpress site to new domain

查看:30
本文介绍了将 Wordpress 站点迁移到新域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有 hostagator 虚拟主机Wordpress 网站,我正在购买新域并希望为网站使用新域,但与现有开发的网站相同.如何备份现有网站,然后恢复到新域?

I have a Wordpress site with hostagator web hosting , I am buying new domain and want to use new domain for site but same existing developed site. How to backup existing site and then restore to new domain ?

推荐答案

解决方案在这里

经过大量搜索后,我得到了一个简单的解决方案.使用 Duplicator 插件或任何其他工具要么困难要么付费.

after searching a lot i got one simple solution. Using Duplicator plugins or any other tool is either difficult or paid.

我的简单解决方法如下

  1. 备份和下载公共 html 文件夹中的所有数据
  2. 下载与 wordpress 站点关联的 SQL 数据库.(在 phpMyadmin 中,您将找到导出数据库的选项.)
  3. 现在将公共 html 文件夹的相同文件上传到新主机的公共 html 文件夹.
  4. 创建一个同名的数据库并从下载的 SQL 数据库中导入表.(在 phpMyadmin 中你会找到导入选项.)

  1. Backup and download all data from public html folder
  2. Download the SQL database associated with the wordpress site.(in phpMyadmin you will find option of export database.)
  3. Now upload the same files of public html folder to the public html folder of new hosting.
  4. create a database with same name and import the tables from the downloaded SQL database.(in phpMyadmin you will find option of import.)

现在检查站点域是否未更改

如果您也通过保持网站不变来更改域名,则需要执行更多步骤

下载并放置 interconnet/it 工具在公共 html 文件夹中并按照文档中的步骤使用此工具.

Download and place the interconnet/it tool in public html folder and follow the steps in documentation to use this tool.

case1- 您将站点从一个域转移到另一个域

如果您要从 abc.com 转移到 xyz.com ins 搜索和替换工具,请将 abc.com 字符串替换为 xyz.com.

if you are transferring from abc.com to xyz.com ins search and replace tool replace abc.com string with xyz.com .

case2- 如果您只在网站上更改名称

如果您保持域名不变但更改站点名称,例如ABC 技术到 XYZ 技术.然后将ABC替换为XYZ

if you are keeping the domain same but changing name of site e.g. ABC Technologies to XYZ technologies . Then replace ABC to XYZ

您可以根据需要使用此工具,因为它也适用于数据库.

You can use this tool as per your need as it is applicable for database too.

这篇关于将 Wordpress 站点迁移到新域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆