seo可分为什么和什么两种_如何在不丢失SEO的情况下将两个WordPress网站合并在一起

news/2024/5/19 4:52:04/文章来源:https://blog.csdn.net/cumyupx7788305/article/details/108612417

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可分为什么和什么两种

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.luyixian.cn/news_show_743256.aspx

如若内容造成侵权/违法违规/事实不符,请联系dt猫网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

seo数据中心_改变主题? 使用SEO数据传输器传输SEO设置

seo数据中心When switching themes or changing SEO plugins, the biggest risk is losing the SEO data like meta title, description, keywords, etc. In this article, we will show you how to properly transfer SEO settings with SEO data transporter. 切换主题或更改…

减肥药,SEO和主题框架:没有神奇的子弹

At WordCamp Raleigh 2011, Andy Stratton covered a very interesting subject “Diet Pills, SEO, and Theme Frameworks: there are no magic bullets”. Here is a short summary of the session along with the presentation. 在WordCamp Raleigh 2011上,安迪斯…

wordpress谷歌字体_如何为您的WordPress网站设置Google Analytics(分析)目标

wordpress谷歌字体Do you want to track key metrics like email signups or sales for your site? Just looking at your website traffic overview report doesn’t give you the full picture. 您是否要跟踪关键指标,例如网站的电子邮件注册或销售?…

查找wordpress端口_如何扫描您的WordPress网站以查找潜在的恶意代码

查找wordpress端口Often we get asked by our users, is there a way to scan your WordPress site for potentially malicious code? The answer to that question is YES, YES, and YES. There are both free and paid tools available to scan your WordPress site for pot…

mcafee怎么添加信任区_如何免费将McAfee SECURE Seal添加到您的WordPress网站

mcafee怎么添加信任区If you’ve shopped on the internet, then you’re probably familiar with website security seals such as Norton and McAfee. These badges show users that you have taken all the necessary precautions to make your website safe and secure. Th…

wordpress 数据库_如何仅通过数据库备份来还原WordPress网站

wordpress 数据库We always recommend our users to make complete WordPress backups on a regular basis. But what if you unknowingly used one of the free plugins that only make database backups? In this article, we will show you how to restore a WordPress sit…

微信扫码访问网站调用默认浏览器打开如何实现?

我们在微信内分享链接或二维码的时候,我们会发现我们的网站是可以在浏览器里正常打开的,但就是不能在微信里打开,提示 “ 已停止访问该网页 ”,无论是聊天框也一样。说是系统检测到您的网址被微信策略屏蔽,有任何问题请…

wordpress谷歌字体_如何将WordPress网站添加到Google Search Console

wordpress谷歌字体One of the most important step in optimizing your WordPress site for SEO is adding it to Google Search Console (formerly Google Webmaster Tools). 为您的SEO优化WordPress网站的最重要步骤之一就是将其添加到Google Search Console(以前称为Google…

黑客入侵入门_修复被黑客入侵的WordPress网站的入门指南

黑客入侵入门A sad reality about running websites is that sometimes they could get hacked. Having our WordPress site hacked a few times in the past, we know exactly how stressful it can be. Not to mention the impact it has on your business and readership. O…

您应该使用的14个最佳WordPress SEO插件和工具

Often we’re asked about what are the best WordPress SEO plugins and tools that we recommend. 通常,我们会被问到什么是我们推荐的最佳WordPress SEO插件和工具。 That’s because search engines are a major source of traffic for most websites on the i…

大型网站技术架构(七)网站的可扩展性架构

2019独角兽企业重金招聘Python工程师标准>>> 扩展性是指对现有系统影响最小的情况下,系统功能可持续扩展或提升的能力。 设计网站可扩展架构的核心思想是模块化,并在此基础上,降低模块间的耦合性,提供模块的复用性。模…

idx1_如何使用WordPress创建IDX房地产网站

idx1Do you want to create an IDX real estate website using WordPress? A real estate website requires specific features that are not normally available in ready-made websites, but don’t worry we got you covered. In this article, we will show you how to ea…

wordpress创建_建立一个WordPress网站实际需要多少费用?

wordpress创建One of the questions we often get asked is: how much does it cost to build a WordPress website? While the core WordPress software is free, the cost of a website depends entirely on your budget and goals. 我们经常被问到的问题之一是&#xff1a…

wordpress用户注册_如何在WordPress网站上允许用户注册

wordpress用户注册Do you want to allow users to register on your site? You can enable user registration in WordPress to allow users to add posts, or comment, or perform other actions on your website. In this article, we will show you how to allow user regi…

wordpress 黑客_WordPress网站遭到黑客入侵的11个主要原因(以及如何预防)

wordpress 黑客Recently, one of our readers asked us why do WordPress sites get hacked? It is frustrating to find out that your WordPress site has been hacked. In this article, we will share the top reasons why WordPress site gets hacked, so you can avoid …

slack通知本地服务器_如何从您的WordPress网站获取Slack通知

slack通知本地服务器Do you want to get Slack notifications based on certain activity on your WordPress site? 您是否要根据WordPress网站上的某些活动获得Slack通知? Slack has become a central communication platform for many online businesses. Havi…

如何验证测试工具的正确_如何正确运行网站速度测试(8种最佳工具)

如何验证测试工具的正确Do you want to run a website speed test? Most beginners don’t know where to begin and what to look for in their website speed test. 您要运行网站速度测试吗? 大多数初学者不知道从哪里开始以及在网站速度测试中要寻找什么。 Th…

2020年必须为企业网站提供24个WordPress插件

Looking for the best WordPress plugins to take your business to the next level in 2020? 寻找最佳的WordPress插件以在2020年将您的业务提升到一个新水平吗? There are over 55,000 WordPress plugins that you can choose from. This makes it extremely ov…

wordpress搜索插件_12个WordPress搜索插件可改善您的网站搜索

wordpress搜索插件Do you want to improve your WordPress site search? We all know that the default WordPress search feature is fairly limiting. However, there are several WordPress search plugins that can help you improve the default search experience. In t…

9个适用于多语言网站的最佳WordPress翻译插件

WordPress is used by millions of non-English websites around the world. You can use WordPress to create a website in any language that you want. WordPress已被全球数百万个非英语网站使用。 您可以使用WordPress以所需的任何语言创建网站。 However, WordPress do…