If you are using Blogger.com (xyz.blogspot.com) as a blogging platform and now want to move the blog from Blogger to WordPress (WordPress.Org – Self Hosted) with your own domain like xyz.com. You’ll need to know some migrating tricks to help protect your sites and contents from being damaged. Here I will describe to you the easy steps to migrate from Blogger to WordPress.
Image by StockSnap from Pixabay |
From my personal experience and also from top bloggers you have to remember three important points before migration from Blogger to WordPress.
- Migrate without losing traffic from Search Engine
- Migrate without losing your present page rank
- Migrate without losing your blog subscribers
- When you import your blogger posts to WordPress your high-ranked posts may lose their top position in organic search engines. Your traffic will decrease day today because when you move your posts permalinks (URL) will change in WordPress.
- Due to a change in the permalinks search engine can not recognize your new links. Your blog’s ranking will go down.
- Some of your pages may be linked to high-ranked Websites/Blogs but after migration, you will lose those traffics and those links will no more redirect to your blog.
- Your blog subscriber can not read your newly migrated blog otherwise they manually to your new blog.
How To Migrate From Blogger to WordPress
/%year%/%monthnum%/%postname%.html
It will help you to remain your post links like Blogger. Permalink
6. Now open your funtion.php file by going to Appearance –> Editor. Here you have to put the below code. You can also put it to your theme directly from your Web Hosting control panel or using FTP.
<?php
function labnol_blogger_query_vars_filter( $vars ) {
$vars[] = "blogger";
return $vars;
}
add_filter('query_vars', 'wp_blogger_query_vars_filter');
function wp_blogger_template_redirect() {
global $wp_query;
$blogger = $wp_query->query_vars['blogger'];
if ( isset ( $blogger ) ) {
wp_redirect( wp_get_wordpress_url ( $blogger ) , 301 );
exit;
}
}
add_action( 'template_redirect', 'labnol_blogger_template_redirect' );
function wp_get_wordpress_url($blogger) {
if ( preg_match('@^(?:https?://)?([^/]+)(.*)@i', $blogger, $url_parts) ) {
$query = new WP_Query (
array ( "meta_key" => "blogger_permalink", "meta_value" => $url_parts[2] ) );
if ($query->have_posts()) {
$query->the_post();
$url = get_permalink();
}
wp_reset_postdata();
}
return $url ? $url : home_url();
}
?>
7. Open your Blogger Dashboard –> Template and chose “Revert to Classic Templates” and paste the below code on your blogger template by removing previous one. (Before doing this please take backup of your blogger template)
<html>
<head>
<title><$BlogPageTitle$></title>
<script>
<MainOrArchivePage>
window.location.href="http://yourblog.com/"
</MainOrArchivePage>
<Blogger><ItemPage>
window.location.href="http://yourblog.com/?blogger=<$BlogItemPermalinkURL$>"
</ItemPage></Blogger>
</script>
<MainPage>
<link rel="canonical" href="http://yourblog.com/" />
</MainPage>
<Blogger>
<ItemPage>
<link rel="canonical" href="http://yourblog.com/?blogger=<$BlogItemPermalinkURL$>" />
</ItemPage>
</Blogger>
</html>
Now, Save it. Code Credit: Labnol.org
8. Now open your old blogger blog and it will redirect to your new blog.Your new blog is now about to get ready.
Move RSS Feed from Blogger to WordPress
When you migrate your Blogger blog to WordPress your RSS link will also change.So you need to move your RSS feeds from Blogger to WordPress .So go to your setting –> other page of Blogger and select Post Feed Redirect URL.Here you have to put your new WordPress RSS link.Now your old Blogger subscribers will redirect to your new WordPress feed.
Now Your migration from Blogger to WordPress is Complete. Enjoy Your New Blogging.
Now What will be your next steps after migration:
- Check DNS on your new Web Hosting control panel.
- Buy a Premium theme for getting high page rank and huge traffic from SEO.
- Install must required Plugins for your Blog.
- If you are not using Google Adsense for monetizing your Blog apply for Google Adsense and if you have already a Google Adsense publisher then use your ads.
Great Post. I am thankful to you for sharing this post. This is very useful for me and as well as for others. Your article is very well written and unique. please keep sharing such posts. Best WordPress Migration Tool
Great job for publishing such a nice article about WordPress Migration. Your article isn’t only useful but it is additionally really informative. Thank you because you have been willing to share information with us. how to migrate WordPress site to new hosting