Before moving to Wordpress, the first thing you would need is a good WordPress hosting company and domain name. We recommend 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.Once you have installed WordPress, it is time to move your content from Blogger to WordPress.
Step 1. Export Your Blogger Blog
Log into your blogger dashboard and go to Settings » Other page. Under the blog tools, click on the Export Blog link.
This will bring up a popup where you need to click on the Download Blog button.
Your Blog content will be downloaded to your computer in an XML file.
Once the download is complete, Import it into your WordPress site.
Step 2. Import Blogger to WordPress
To import your Blogger site into WordPress, you need to go to your WordPress admin and visit Tools » Import. On the Import page, click on Blogger.
After above process will complete, bring popup window asking you to install the Blogger to WordPress importer. You need to click on the Install button.
WordPress will now download and install the Blogger Importer plugin . Once it is finished installing, you would need to click on the Activate Plugin and Run Importer link to continue.
Now in Import Blogger screen, WordPress will ask you to upload the XML file.
Now click on the choose file button and upload the XML file you downloaded. Next, click on the Upload file and import button to continue.
WordPress will now import your blogger posts. When it is finished, you will be asked to assign an author to the imported posts. You can assign your blogger posts to an existing author or create a new author account.
Hurray! you have successfully imported your Blogger content into WordPress.
Step 3. Setting up Permalinks
To set permalinks, you need to go to Settings » Permalinks and choose Month and Name as your permalink .
Step 4. Setting up Redirection
For set up redirection on the blogger. You need to log on to your Blogger account and go to your Blog’s settings and click on Template.On the template page, you need to go to the bottom of the page and click on Revert to Classic Template.
After reverting to classic template, you will see ‘Edit Template HTML’ area. You need to change everything in this area with the following code. Make sure that you change http://www.example.com with your domain name.
<html>Now,Save your template, and you have successfully implemented redirection on your Blogger blog.But Remember you still need to setup redirection on your WordPress site so that users are redirected to the proper posts.For That You need to copy and paste the following code in your WordPress theme’s functions.php file or in a site-specific plugin.
<head>
<title><$BlogPageTitle$></title>
<script>
<MainOrArchivePage>
window.location.href="http://example.com/"
</MainOrArchivePage>
<Blogger>
<ItemPage>
window.location.href="http://example.com/?blogger=<$BlogItemPermalinkURL$>"
</ItemPage>
</Blogger>
</script>
<MainPage>
<link rel="canonical" href="http://example.com/" />
</MainPage>
<Blogger>
<ItemPage>
<link rel="canonical" href="http://example.com/?blogger=<$BlogItemPermalinkURL$>" />
</ItemPage>
</Blogger>
</head>
<body>
<MainOrArchivePage>
<h1><a href="http://example.com/"><$BlogTitle$></a></h1>
</MainOrArchivePage>
<Blogger>
<ItemPage>
<h1><a href="http://example.com/?blogger=<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a></h1>
<$BlogItemBody$>
</ItemPage>
</Blogger>
</body>
</html>
function blogger_query_vars_filter( $vars ) {The code above creates a blogger to WordPress 301 redirect which is best for SEO.Once you have pasted this code, that’s all you need to do for setting up redirection.
$vars[] = "blogger";
return $vars;
}
add_filter('query_vars', 'blogger_query_vars_filter');
function blogger_template_redirect() {
global $wp_query;
$blogger = $wp_query->query_vars['blogger'];
if ( isset ( $blogger ) ) {
wp_redirect( get_wordpress_url ( $blogger ) , 301 );
exit;
}
}
add_action( 'template_redirect', 'blogger_template_redirect' );
function 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();
}
Step 5. Redirect Feeds
To change redirect feed log in to your Blogger account and then go to Settings » Other page.
In the Site Feed area, click on Add link next to Post Feed Redirect URL. Now you can enter your new WordPress site’s feed address.
That's it Folks !!
We hope this article helped you to switch from Blogger to Wordpress site.If you liked this article you can Join us on Facebook,Twitter,Google Plus