blogger_如何在不失去Google排名的情况下从Blogger切换到WordPress

blogger

Do you want to migrate your blog from Blogger to WordPress? While Blogger is a neat free tool to start blogging, many beginners soon realize its limitations, and they want to switch to WordPress to get access to more powerful features. In this article, we will show you how to properly switch from Blogger to WordPress without losing Google rankings.

您要将博客从Blogger迁移到WordPress吗? 虽然Blogger是一种免费的好工具,但它可以用来开始写博客,但许多初学者很快意识到了它的局限性,他们希望改用WordPress来访问更强大的功能。 在本文中,我们将向您展示如何在不失去Google排名的情况下从Blogger正确切换到WordPress。

Switching from Blogger to WordPress
为什么从Blogger迁移到WordPress? (Why Move From Blogger to WordPress?)

Blogger is a popular blogging platform created by Google. It allows anyone to create a free blog using their Google account.

Blogger是Google创建的流行博客平台 。 它允许任何人使用其Google帐户创建免费博客。

However, many beginners soon realize that there are a lot of limitations on what they can do with their free Blogger blog.

但是,许多初学者很快意识到,使用免费的Blogger博客可以做的事情有很多限制。

WordPress, on the other hand, gives you complete ownership of your website. It also allows you to add necessary features to grow and monetize your blog. We have created a detailed side-by-side comparison of WordPress vs Blogger.

另一方面,WordPress为您提供网站的完全所有权。 它还允许您添加必要的功能以增长博客并从中获利。 我们创建了WordPress与Blogger的详细并排比较。

It’s important to note that when we say WordPress, we are talking about self-hosted WordPress.org which should NOT be confused with WordPress.com which is a hosted solution that has it’s own limitations. For details, see our article on the difference between WordPress.com vs WordPress.org.

重要的是要注意,当我们说WordPress时,我们在谈论的是自托管的WordPress.org,它不应与WordPress.com混淆,后者是一个具有自身局限性的托管解决方案。 有关详细信息,请参阅关于WordPress.com与WordPress.org之间的区别的文章。

WordPress.org is the popular “WordPress” platform that you have likely heard about because it powers 31% of all websites on the internet.

WordPress.org是您可能听说过的流行的“ WordPress”平台,因为它支持Internet上所有网站的31%。

That being said, let’s take a look at how to properly move from Blogger to WordPress while preserving your Google search rankings and website traffic.

话虽如此,让我们来看看如何在保持Google搜索排名和网站流量的同时,从Blogger正确地迁移到WordPress。

Here are the exact steps that we will use to transfer from Blogger to WordPress:

以下是我们将用于从Blogger转移到WordPress的确切步骤:

  1. WordPress hosting company.WordPress托管公司注册。
  2. Export your Blogger blog

    导出您的Blogger博客
  3. Import Blogger to WordPress

    将Blogger导入WordPress
  4. Setup permalinks on your new WordPress blog.

    在新的WordPress博客上设置永久链接。
  5. Setup redirects for Blogger visitors to WordPress posts

    安装程序将Blogger访问者重定向到WordPress帖子
  6. Moving Other content from Blogger to WordPress

    将其他内容从Blogger移至WordPress
  7. Things to do after migrating from Blogger to WordPress

    从Blogger迁移到WordPress后要做的事情

Ready? Let’s get started.

准备? 让我们开始吧。

影片教学 (Video Tutorial)

演示地址

If you don’t want to watch the video tutorial, then you can continue reading the text version below:

如果您不想观看视频教程,则可以继续阅读以下文本版本:

步骤0。开始之前 (Step 0. Before You Start)

To get started with WordPress, you would need a domain name and web hosting.

要开始使用WordPress,您需要一个域名和虚拟主机

For a quick primer, a domain name is your website’s address that people type to get to your blog, and web hosting is where your website files are stored. Both of these are a MUST HAVE to create any type of blog / website.

作为快速入门,域名是人们键入您的网站地址,您可以访问您的博客,而Web托管是网站文件的存储位置。 这两个都是必须创建任何类型的博客/网站。

With that said, we recommend using Bluehost. They are one of the largest hosting companies in the world, and they are an officially recommended WordPress hosting partner.

话虽如此,我们建议使用Bluehost 。 他们是全球最大的托管公司之一,并且是官方推荐的WordPress托管合作伙伴。

Because WPBeginner is the largest WordPress resource site, they have agreed to offer our readers a free domain name and a 60% discount on hosting. Basically, you can get started for just $2.75 per month.

由于WPBeginner是最大的WordPress资源站点,因此他们同意为我们的读者提供免费域名和托管费用的60%折扣。 基本上,您每月只需支付2.75美元即可上手。

→ Click Here to Claim This Exclusive Bluehost Offer ←

→单击此处要求此Bluehost独家优惠←

Once you have signed up for WordPress hosting and set up your domain name, the next step is to install WordPress on your hosting account.

一旦您注册了WordPress托管并设置了域名,下一步就是在您的托管帐户上安装WordPress。

If you signed up with Bluehost using our link above, then WordPress will be automatically installed for you.

如果您使用上面的链接注册了Bluehost ,那么WordPress将自动为您安装。

If you used a different WordPress hosting, then you need to install WordPress by following our ultimate guide on how to install WordPress.

如果您使用了其他WordPress托管 ,则需要按照我们有关如何安装WordPress的最终指南来安装WordPress

After you have installed WordPress, it is time to move your content from Blogger to WordPress.

安装WordPress之后,就该将内容从Blogger移到WordPress了。

Bonus Free Offer: Since a lot of you asked for this, we are now offering free Blogger to WordPress migration service as part of our free WordPress blog setup service. This means one of our expert team member will do the entire migration for you (100% free). Yes, you can literally switch from Blogger to WordPress without any risk.

免费赠金:由于很多人都要求这样做,我们现在提供免费的Blogger到WordPress迁移服务,这是我们的免费WordPress博客设置服务的一部分 。 这意味着我们的专家团队成员之一将为您完成整个迁移(100%免费)。 是的,您可以毫无风险地从Blogger切换到WordPress。

Note: Our free blogger migration service is for smaller blogs that have less than 1000 blog posts. We can offer migration service for larger blogger sites, but that will be a paid service.

注意:我们的免费博客迁移服务适用于少于1000个博客帖子的小型博客。 我们可以为大型博客网站提供迁移服务,但这将是一项付费服务​​。

However if you are someone who likes learning and doing things yourself, then you can follow our step by step tutorial below.

但是,如果您是一个喜欢自己学习和做事的人,则可以按照下面的分步教程进行操作。

步骤1.导出您的Blogger博客 (Step 1. Export Your Blogger Blog)

The first thing you need to do is export your Blogger blog’s content. You can do this by logging into your Blogger dashboard and going to Settings » Other page. Under the ‘Import & back up’ section, you need to click on the ‘Back up Content’ button.

您需要做的第一件事是导出Blogger博客的内容。 您可以通过登录Blogger仪表板并转到“设置”»“其他”页面来执行此操作。 在“导入和备份”部分下,您需要单击“备份内容”按钮。

Export your Blogger content

This will bring up a popup where you need to click on the ‘Save to your computer’ button.

这将弹出一个弹出窗口,您需要单击“保存到计算机”按钮。

Save backup content to your computer

Your Blogger blog’s content will be downloaded to your computer in an XML file. Once the download is complete, it is time to import your Blogger content into your WordPress site.

您Blogger博客的内容将以XML文件下载到您的计算机中。 下载完成后,就可以将Blogger内容导入WordPress网站了。

步骤2.将Blogger导入WordPress (Step 2. Import Blogger to WordPress)

To start importing your Blogger site into WordPress, you need to login to your WordPress admin area and visit Tools » Import. On the Import page, go ahead and click on the ‘Install Now’ link below Blogger.

要开始将Blogger网站导入WordPress,您需要登录到WordPress管理区域并访问工具»导入 。 在“导入”页面上,继续并单击Blogger下面的“立即安装”链接。

Install Blogger importer for WordPress

WordPress will now download and install the Blogger Importer plugin for you. Once it is finished installing, you would need to click on the ‘Run Importer’ link to continue.

WordPress现在将为您下载并安装Blogger导入程序插件。 安装完成后,您需要单击“运行导入程序”链接以继续。

Run Blogger importer

On the Import Blogger screen, WordPress will ask you to upload the XML file. This is the file that you downloaded in Step 1.

在“导入Blogger”屏幕上,WordPress将要求您上传XML文件。 这是您在步骤1中下载的文件。

Simply click on the choose file button and upload the XML file you downloaded earlier. Next, you need to click on the Upload file and import button to continue.

只需单击选择文件按钮,然后上传您先前下载的XML文件。 接下来,您需要单击上载文件和导入按钮以继续。

Upload the file to import

WordPress will now upload the import file. If your import file is too large, then you may see an error that your file size is too large. In this case, you would need to increase your maximum file upload limit. If your file is small, then you won’t see any errors.

WordPress现在将上传导入文件。 如果导入文件太大,则可能会看到错误消息,即文件大小太大。 在这种情况下,您需要增加最大文件上传限制 。 如果文件很小,则不会看到任何错误。

Next, you will be asked to assign posts to an author. If you had multiple authors on your Blogger blog, then you can create a new user account for each author. You can also assign these posts to existing authors on your WordPress site.

接下来,将要求您将帖子分配给作者。 如果您在Blogger博客上有多个作者,则可以为每个作者创建一个新的用户帐户。 您还可以将这些帖子分配给WordPress网站上的现有作者。

Assign authors

After making your selection, click on the submit button to continue.

做出选择后,单击提交按钮继续。

WordPress will now import all content from the Blogger export file to your WordPress site. You can view the content by visiting Posts » All Posts page.

WordPress现在将所有内容从Blogger导出文件导入到您的WordPress网站。 您可以通过访问帖子»所有帖子页面来查看内容。

Imported content on your WordPress blog
步骤3.设置永久链接 (Step 3. Setting up Permalinks)

Permalinks is the term used for URL structure of individual pages. WordPress comes with a feature that allows you to set up SEO friendly URL structure. Since you are importing content from Blogger, you need your URL structure to be as close to your Blogger URL structure as possible.

永久链接是用于单个页面的URL结构的术语。 WordPress带有一项功能,可让您设置SEO友好的URL结构 。 由于您是从Blogger导入内容,因此您需要URL结构尽可能接近Blogger URL结构。

To set permalinks, you need to go to Settings » Permalinks screen in your WordPress dashboard and choose the custom structure option. After that, you need to add the following text in the box next to the custom structure field.

要设置永久链接,您需要转到WordPress仪表板中的“设置”»“永久链接”屏幕,然后选择“自定义结构”选项。 之后,您需要在自定义结构字段旁边的框中添加以下文本。

/%year%/%monthnum%/%postname%.html

/%year%/%monthnum%/%postname%.html

Setting up permalinks

This permalink structure makes your blog posts URLs similar to the URLs on your old Blogger blog.

这种永久链接结构使您的博客帖子URL类似于旧的Blogger博客中的URL。

However, sometimes your blog post URL also known as slug in WordPress will not match the slugs used by Blogger.

但是,有时您的博客文章URL(在WordPress中也称为slug)与Blogger使用的slug不匹配。

To fix this, you will need to create and run a little code snippet. Please see our guide on how to copy and paste code snippets in WordPress.

要解决此问题,您将需要创建并运行一些代码段。 请参阅有关如何在WordPress中复制和粘贴代码段的指南。

You will need to add this code to your WordPress theme’s functions.php file.

您将需要将此代码添加到WordPress主题的functions.php文件中。


add_action( 'init', 'wpb_update_slug' );

function wpb_update_slug() { 
global $wpdb;
$result = $wpdb->get_results("SELECT post_id, meta_value FROM $wpdb->postmeta WHERE meta_key = 'blogger_permalink' ");
$wpdb->print_error();
foreach ($result as $row){
$slug = explode("/",$row->meta_value);
$slug = explode(".",$slug[3]);
$wpdb->query("UPDATE $wpdb->posts SET post_name ='$slug[0]' WHERE ID = '$row->post_id' ");
}
echo "DONE";

} 

After saving the code, you just need to visit any page on your WordPress site to trigger this script.

保存代码后,您只需访问WordPress网站上的任何页面即可触发此脚本。

Note: After the script has run, don’t forget to delete it from your functions.php file because it only needs to run once.

注意:脚本运行后,请不要忘记将它从functions.php文件中删除,因为它只需要运行一次。

Bonus Free Offer: Don’t want to deal with code? We have got you covered. Since a lot of you asked for this, we are now offering free Blogger to WordPress migration service as part of our free WordPress blog setup service. This means one of our expert team member will do the entire migration for you (100% free). Yes, you can literally switch from Blogger to WordPress without any risk.

免费赠金:不想处理代码? 我们已经覆盖了您。 由于很多人都要求这样做,因此我们现在提供免费的Blogger到WordPress迁移服务,这是我们的免费WordPress博客设置服务的一部分 。 这意味着我们的专家团队成员之一将为您完成整个迁移(100%免费)。 是的,您可以毫无风险地从Blogger切换到WordPress。

步骤4.将安装程序从Blogger重定向到WordPress (Step 4. Setup Redirects from Blogger to WordPress)

The most important step in moving any website is to setup proper redirection, so you don’t lose any existing traffic or SEO rankings.

移动任何网站的最重要步骤是设置适当的重定向,这样您就不会失去任何现有流量或SEO排名。

The crucial part of the redirection is to make sure that your users land on exactly the same page on the new site which they were trying to access on the old site. At the same time, we also need to ensure that search engines understand that your website is moved to this new location.

重定向的关键部分是确保用户登录到他们试图在旧站点上访问的新站点上完全相同的页面。 同时,我们还需要确保搜索引擎了解您的网站已移至这个新位置。

To do that, you need to install and activate the Blogger to WordPress Redirection plugin. For more details, see our step by step guide on how to install a WordPress plugin.

为此,您需要安装并激活Blogger至WordPress重定向插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, you need to visit Tools » Blogger to WordPress Redirection page and click on the ‘Start Configuration’ button.

激活后,您需要访问工具»Blogger到WordPress重定向页面,然后单击“开始配置”按钮。

Get the redirection code

The plugin will now detect the URL of your Blogger blog and show you the option to Get Redirection Code. Go ahead and click on the ‘Get Code’ button next to your Blogger URL.

现在,该插件将检测您Blogger博客的网址,并向您显示获取重定向代码的选项。 继续,然后点击Blogger URL旁边的“获取代码”按钮。

It will now generate a code snippet that you need to properly redirect users from your Blogger blog to your new WordPress site.

现在,它将生成一个代码段,您需要正确地将用户从Blogger博客重定向到新的WordPress网站。

Next, you need to login to your Blogger dashboard and go to the ‘Themes’ page. Under your blog preview image, you need to click on the ‘Edit HTML’ button.

接下来,您需要登录Blogger仪表板,然后转到“主题”页面。 在您的博客预览图像下,您需要单击“编辑HTML”按钮。

Edit Blogger theme

Blogger will now display the custom HTML code for your theme. If you made any customizations to your Blogger theme, then you may want to copy the code and save it on your computer as backup.

Blogger现在将显示主题的自定义HTML代码。 如果您对Blogger主题进行了任何自定义,则可能需要复制代码并将其保存为备份计算机。

Otherwise, you can just go ahead and delete everything. After that, copy the code displayed by the plugin on your WordPress site and paste it into your Blogger theme editor.

否则,您可以继续删除所有内容。 之后,复制该插件在WordPress网站上显示的代码,并将其粘贴到您的Blogger主题编辑器中。

Save your redirection code

Don’t forget to click on the ‘Save theme’ button to store your changes.

不要忘记单击“保存主题”按钮来存储您的更改。

Next, we need to set up redirects for mobile users.

接下来,我们需要为移动用户设置重定向。

You need to go back to the Themes page on your Blogger blog’s dashboard. This time you need to click on the gear button below the mobile preview of your blog.

您需要返回到Blogger博客仪表板上的“主题”页面。 这次,您需要单击博客的移动预览下方的齿轮按钮。

Change mobile theme settings

This will bring up a popup where you need to select ‘No. Show desktop theme on mobile devices’ option and click on the save button.

这将弹出一个弹出窗口,您需要选择“否。 在移动设备上显示桌面主题选项,然后单击保存按钮。

Disable mobile theme

That’s all, your Blogger blog will now redirect all your blog visitors to your new WordPress blog.

就是这样,您的Blogger博客现在将所有博客访问者重定向到新的WordPress博客。

步骤5.将其他内容从Blogger移至WordPress (Step 5. Moving Other Content from Blogger to WordPress)

In this step, we will move other remaining content from Blogger to WordPress. This may require some manual work depending on the settings / content of your blog.

在这一步中,我们将其他剩余内容从Blogger移至WordPress。 根据博客的设置/内容,这可能需要一些手动工作。

1. Moving pages from Blogger to WordPress

1.将页面从Blogger移至WordPress

WordPress’ Blogger importer tool only import posts from Blogger and ignores pages. To move your pages into WordPress, you will have to edit each page in your blogger blog, copy its contents, and then manually create a page in WordPress.

WordPress的Blogger导入器工具仅从Blogger导入帖子,而忽略页面。 要将页面移至WordPress,您将必须在Blog博客中编辑每个页面,复制其内容,然后在WordPress中手动创建一个页面。

To learn more about pages, see our article on the difference between posts vs pages in WordPress.

要了解有关页面的更多信息,请参阅关于WordPress中帖子与页面之间区别的文章

Now you will come across another issue. The blogger pages have URLs that look like this:

现在,您将遇到另一个问题。 博客页面的URL如下所示:

http://example.blogspot.com/p/about-us.html

http://example.blogspot.com/p/about-us.html

Your WordPress page URL will look like this:

您的WordPress页面URL将如下所示:

http://example.com/about-us

http://example.com/about-us

To fix this you will need to use the Redirection plugin. For instructions, please see our beginner’s guide on creating redirects in WordPress.

要解决此问题,您将需要使用重定向插件。 有关说明,请参阅有关在WordPress中创建重定向的初学者指南。

2. Widgets

2.小​​部件

Just like Blogger, WordPress themes also utilize widgets to add content to your blog’s sidebar. To add widgets, you need to visit Appearance » Widgets page on your WordPress dashboard and simply drag / drop widgets into sidebars.

就像Blogger一样,WordPress主题也利用小部件向博客的侧边栏添加内容。 要添加小部件,您需要访问WordPress仪表板上的外观»小部件页面,只需将小部件拖放到侧边栏中。

For detailed instructions, see our guide on how to add and use widgets in WordPress.

有关详细说明,请参阅有关如何在WordPress中添加和使用小部件的指南。

If you’re looking for a specific widget that you don’t see in WordPress by default, then you likely need a WordPress plugin. You can search WPBeginner’s best WordPress plugin category to find the functionality that you’re looking for.

如果要查找默认情况下在WordPress中看不到的特定小部件,则可能需要WordPress插件。 您可以搜索WPBeginner的最佳WordPress插件类别,以找到所需的功能。

3. RSS Feeds

3. RSS提要 '

Search engines and users who subscribed to your blog posts via RSS feeds will still be able to find your blog. However, they will not get any new content.

通过RSS feed订阅了您的博客文章的搜索引擎和用户仍然可以找到您的博客。 但是,他们将不会获得任何新内容。

To fix this, you need to visit Settings » Other page under your Blogger account. Next, you need to click on the ‘Add’ link next to Post Feed Redirect URL and add your WordPress feed.

要解决此问题,您需要访问Blogger帐户下的设置»其他页面。 接下来,您需要点击发布Feed重定向URL旁边的“添加”链接,然后添加您的WordPress feed。

Your WordPress feed URL will look like this:

您的WordPress Feed URL如下所示:

http://yoursite.com/feed

http://yoursite.com/feed

Redirect Blogger feed
步骤6.从Blogger迁移到WordPress之后要做的事情 (Step 6. Things to do After Migrating from Blogger to WordPress)

Now that you have successfully moved your Blogger blog to WordPress, let’s take a look at what else you can do to improve your blog.

现在,您已成功将Blogger博客移至WordPress,下面让我们看看您还可以采取哪些措施来改善博客。

We have created a checklist of the most important things you need to do after installing WordPress.

我们已经创建了一个清单,列出了安装WordPress之后您需要做的最重要的事情

WordPress is quite easy to use. However, you’ll occasionally discover new things that you may need help with. This is where WPBeginner comes in.

WordPress非常易于使用。 但是,您偶尔会发现可能需要帮助的新事物。 这就是WPBeginner的来历。

WPBeginner is the largest free WordPress resource site in the world. We regularly publish tutorials and guides written specifically for bloggers and small businesses.

WPBeginner是世界上最大的免费WordPress资源网站。 我们会定期发布专门为博客作者和小型企业编写的教程和指南。

Here are some of the useful resources that you will find on WPBeginner (all of them are totally free).

这里是您可以在WPBeginner上找到的一些有用的资源(它们都是完全免费的)。

  • WPBeginner Blog – The central place for all our WordPress tutorials and guides.WPBeginner博客 –我们所有WordPress教程和指南的中心位置。
  • WPBeginner Dictionary – Our WordPress glossary is the best place to familiarize yourself with the WordPress lingoWPBeginner词典 –我们的WordPress词汇表是熟悉WordPress术语的最佳场所
  • WPBeginner Videos – New WordPress users can start with these 23 videos to master WordPress.WPBeginner视频 –新的WordPress用户可以从这23个视频开始来掌握WordPress。
  • WPBeginner on YouTube – Need more video instructions? Subscribe to our YouTube channel with more than 110,000 subscribers and 10 Million+ views.YouTube上的WPBeginner –需要更多视频说明吗? 订阅我们的YouTube频道,拥有110,000多名订阅者,观看次数超过1000万。
  • WPBeginner Blueprint – Check out plugins, tools, and services we use on WPBeginner.WPBeginner蓝图 –查看我们在WPBeginner上使用的插件,工具和服务。
  • WPBeginner Deals – Exclusive discounts on WordPress products and services for WPBeginner users.WPBeginner Deals –为WPBeginner用户提供WordPress产品和服务的独家折扣。

We hope this article helped you switch from Blogger to WordPress without affecting your Google search rankings. You may also want to see our ultimate step by step WordPress SEO guide for beginners.

我们希望本文能帮助您从Blogger切换到WordPress,而又不影响您的Google搜索排名。 您可能还想看看我们针对初学者的终极一步一步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视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-switch-from-blogger-to-wordpress-without-losing-google-rankings/

blogger

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值