我是靠谱客的博主 大意抽屉,最近开发中收集的这篇文章主要介绍seo可分为什么和什么两种_如何在不丢失SEO的情况下将两个WordPress网站合并在一起,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

seo可分为什么和什么两种

Recently, one of our readers asked us how to merge two WordPress sites together? Sometimes you may create multiple WordPress sites but later want to merge them together. WordPress comes with built-in tools to easily do this. In this article, we will show you how to properly merge two WordPress sites together.

最近,一位读者问我们如何将两个WordPress网站合并在一起? 有时您可能会创建多个WordPress网站,但后来想将它们合并在一起。 WordPress带有内置工具,可以轻松地做到这一点。 在本文中,我们将向您展示如何将两个WordPress网站正确合并在一起。

How to merge two WordPress sites together
为什么要合并两个WordPress网站? (Why Merge Two WordPress Sites Together?)

There could be a lot of reasons for merging two or more WordPress sites together. You may want to start a new WordPress blog by combining your old blogs so that you can have all your content on one location.

将两个或多个WordPress网站合并在一起可能有很多原因。 您可能希望通过合并旧博客来创建一个新的WordPress博客 ,以便将所有内容都放在一个位置。

Another reason could be that one of your blogs is not doing so well, and you want to merge its content with one of your primary blogs.

另一个原因可能是您的一个博客表现不佳,您想将其内容与一个主要博客合并。

Most users merge WordPress sites to spend less time on maintaining a separate WordPress install. Instead of running, marketing, updating and keeping WordPress backups of two or more sites, you can focus on maintaining and growing just one WordPress site.

大多数用户合并WordPress网站,以花费较少的时间来维护单独的WordPress安装 。 无需运行,营销,更新和保留两个或多个站点的WordPress备份 ,您可以专注于仅维护和增长一个WordPress站点。

Let’s take a look at how to easily merge WordPress sites together.

让我们看一下如何轻松地将WordPress网站合并在一起。

从旧的WordPress网站导出内容 (Exporting Content From Old WordPress Site)

For the sake of this example, we will say that you have a WordPress site at http://oldsite.com and you want to merge it with http://newsite.com/.

就本例而言,我们将假设您在http://oldsite.com上有一个WordPress网站,并且想要将其与http://newsite.com/合并。

Important: Don’t forget to create complete WordPress backup of both your websites. This will come in handy in case anything goes wrong and you want to revert back.

重要提示:不要忘记为两个网站都创建完整的WordPress备份 。 如果出现任何问题并且您想恢复原状,这将派上用场。

First, you need to visit Tools » Export page inside the admin area of your old WordPress site. This is the site that you want to merge with the newer site.

首先,您需要访问旧WordPress网站管理区域内的工具»导出页面。 这是您要与较新站点合并的站点。

Export content from your old WordPress site

Make sure that you select ‘All content’ option and then click on ‘Download Export File’ button to continue.

确保选择“所有内容”选项,然后单击“下载导出文件”按钮以继续。

WordPress will now prepare an XML file and send it to your browser. You need to save this file on your computer as you will need it in the next step.

WordPress现在将准备一个XML文件并将其发送到您的浏览器。 您需要将此文件保存在计算机上,因为下一步将需要它。

This file will contain the following:

该文件将包含以下内容:

  • posts and pages帖子和页面
  • custom post types (if you have any) 自定义帖子类型 (如果有)
  • categories and tags and 类别和标签以及custom taxonomies (if you have any). 自定义分类法 (如果有)。
在新的WordPress网站上合并内容 (Merging Content on New WordPress Site)

Now that you have exported content from your old site, it is time to merge it with your new WordPress site.

现在您已经从旧站点中导出了内容,是时候将其与新的WordPress网站合并了。

Head over to the admin area of the destination site (the site where you want content to be merged) and visit Tools » Import page.

转到目标站点(您要合并内容的站点)的管理区域,然后访问工具»导入页面。

Install WordPress importer

This page lists all the import tools that you can install and run on your WordPress site. Scroll down to the bottom and click on the ‘Install now’ link under WordPress.

此页面列出了您可以在WordPress网站上安装和运行的所有导入工具。 向下滚动到底部,然后单击WordPress下的“立即安装”链接。

Once the WordPress importer is installed, you need to click on the ‘Run Importer’ link to continue.

安装WordPress导入程序后,您需要单击“运行导入程序”链接以继续。

Run WordPress importer

Next, you will be asked to upload the WordPress export file.

接下来,将要求您上传WordPress导出文件。

You need to click on the ‘Choose File’ button and then select the XML file you downloaded earlier.

您需要单击“选择文件”按钮,然后选择您先前下载的XML文件。

Upload WordPress import file

Click on ‘Upload file and import’ button to continue.

点击“上传文件并导入”按钮继续。

WordPress will now upload your export file and analyze it. After that, it will redirect you to import settings page.

WordPress现在将上传您的导出文件并进行分析。 之后,它将重定向您到导入设置页面。

WordPress import settings

It will ask you to assign authors or create new authors.

它将要求您分配作者或创建新作者。

You can assign the imported content to an existing user on your WordPress site or create a new author.

您可以将导入的内容分配给WordPress网站上的现有用户,也可以创建新作者。

Next, check the box under ‘Import Attachments’ option to import media attachments from your old WordPress site.

接下来,选中“导入附件”选项下的框,以从旧的WordPress网站导入媒体附件。

You can now click on the Submit button to run the final step of the import.

现在,您可以单击“提交”按钮以运行导入的最后一步。

WordPress will now import content from your export file and add it to your new WordPress site. Once finished, you will see a success message.

WordPress现在将从您的导出文件导入内容,并将其添加到新的WordPress网站。 完成后,您将看到一条成功消息。

WordPress import finished
设置重定向 (Setting up Redirects)

After successfully merging content from two WordPress sites, the next step is to setup redirects so that users visiting the old site are automatically redirected to the new WordPress site.

成功合并两个WordPress网站中的内容后,下一步是设置重定向,以便访问旧站点的用户自动重定向到新WordPress网站。

You will need to edit the .htaccess file on the old WordPress site.

您将需要在旧的WordPress网站上编辑.htaccess文件。

You can edit the .htaccess file by connecting to your WordPress site using an FTP client or by using the File Manager tool in your WordPress hosting cPanel.

您可以通过使用FTP客户端连接到WordPress网站或使用WordPress托管 cPanel中的文件管理器工具来编辑.htaccess文件。

The .htaccess file is located in the root folder of your website. If you can’t find it, then see our guide on why you can’t find .htaccess file on your WordPress site to unhide it.

.htaccess文件位于您网站的根文件夹中。 如果找不到它,请参阅我们的指南, 了解为什么无法在WordPress网站上找到.htaccess文件来取消隐藏它。

You need to place this code at top of your .htaccess file.

您需要将此代码放在.htaccess文件的顶部。


#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]

Don’t forget to replace newsite.com with the domain name of your new WordPress site. Save your changes and upload the file back to your server.

不要忘记用新的WordPress网站的域名替换newsite.com。 保存更改,然后将文件上传回服务器。

You can now visit any post on your old WordPress site, and you will be automatically redirected to the same post on the new site.

现在,您可以访问旧WordPress网站上的任何帖子,您将自动重定向到新网站上的同一帖子。

合并两个WordPress网站后的故障排除 (Troubleshooting After Merging Two WordPress Sites)

How to merge and bulk edit categories and tags?

如何合并和批量编辑类别和标签?

You may want to clean up categories and tags after merging two WordPress sites. For detailed instructions, check out our tutorial on how to merge and bulk edit categories in tags in WordPress.

合并两个WordPress网站后,您可能需要清理类别和标签。 有关详细说明,请查看有关如何合并和批量编辑WordPress标记中的类别的教程。

How to import missing images?

如何导入丢失的图像?

For that you will have to temporarily disable redirect by editing .htaccess file and removing the code you added earlier. After that you can follow the instructions in our guide on how to import external images in WordPress.

为此,您将不得不通过编辑.htaccess文件并删除之前添加的代码来暂时禁用重定向。 之后,您可以按照我们的指南中有关如何在WordPress中导入外部图像的说明进行操作 。

Don’t forget to setup redirects again after importing your images.

导入图像后,请不要忘记再次设置重定向。

Fix URLs pointing to old domain in posts and pages

修复指向帖子和页面中旧域的URL

All internal links in imported posts and pages will still be pointing to your old site. Since you have redirects setup, your users will still land on the correct post on your new site.

导入的帖子和页面中的所有内部链接仍将指向您的旧站点。 由于您具有重定向设置,因此您的用户仍然可以在新网站上的正确文章中找到。

However, you still need to update URLs for improved SEO and better user experience. For step by step instructions, see our tutorial on how to update URLs when moving your WordPress site.

但是,您仍然需要更新URL以改善SEO和更好的用户体验。 有关分步说明,请参阅我们的教程,有关在移动WordPress网站时如何更新URL 。

We hope this article helped you merge two WordPress sites together. You may also want to see our step by step WordPress SEO guide for beginners.

我们希望本文能帮助您将两个WordPress网站合并在一起。 您可能还想看看我们针对初学者的逐步WordPress SEO指南 。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Facebook上找到我们。

翻译自: https://www.wpbeginner.com/beginners-guide/how-to-merge-two-wordpress-sites-together-without-losing-seo/

seo可分为什么和什么两种

最后

以上就是大意抽屉为你收集整理的seo可分为什么和什么两种_如何在不丢失SEO的情况下将两个WordPress网站合并在一起的全部内容,希望文章能够帮你解决seo可分为什么和什么两种_如何在不丢失SEO的情况下将两个WordPress网站合并在一起所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(37)

评论列表共有 0 条评论

立即
投稿
返回
顶部