From Blogger to Wordpress migration

Marc0

Well-known member
Registered
Joined
Jun 6, 2012
Messages
890
Points
28
What is the easy and best way to migrate blogger blog to wordpress?
The blogger blog is doing well and have PR3 and guests in few countless, SO without disturbing/making website down, how can I move it.


Please help with your experience.

Thanks
 

GswHosting

Well-known member
Registered
Joined
Aug 23, 2016
Messages
233
Points
0
There is way how to migrate blogger to WordPress.
I had to do it not long time ago.

First you need to export blogger blog and save it to you computer.

From blogger dashboard go to settings -> other on that page you have "back up content" button. After pressing you got popup window just hit "save to your computer.

Then from WordPress dash board or admin panel choose tools then import and choose blogger. You will need to install plugin and then probably repeat process.

Then you can upload content from blogger. Depending on size of your blog you will need to increase your maximum file upload limit.

To increase you have to change php.ini
Code:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
Then setup permalinks you can choose blogger like permalink structure Month and Name.
To setup go to settings -> permalinks.

Check you WordPress blog if there is need for more settings.

After that you need to setup redirection go to blogger choose template, on that page scroll down find and click on Revert to Classic Template link.

After switching go to "Edit template HTML" text are and replace all in there with following code.

Just replace yourdomain.com with your actual domain name.
Code:
<html>
 <head>
  <title><$BlogPageTitle$></title>

   <script>
    <MainOrArchivePage>
    window.location.href="http://yourdomain.com/"
    </MainOrArchivePage>
    <Blogger>
     <ItemPage>
     window.location.href="http://yourdomain.com/?blogger=<$BlogItemPermalinkURL$>"
     </ItemPage>
    </Blogger>
   </script>

   <MainPage>
   <link rel="canonical" href="http://yourdomain.com/" />
   </MainPage>

   <Blogger>
    <ItemPage>
    <link rel="canonical" href="http://yourdomain.com/?blogger=<$BlogItemPermalinkURL$>" />
    </ItemPage>
   </Blogger>
 </head>

 <body>
  <MainOrArchivePage>
   <h1><a href="http://yourdomain.com/"><$BlogTitle$></a></h1>
  </MainOrArchivePage>
  <Blogger>
   <ItemPage>
    <h1><a href="http://yourdomain.com/?blogger=<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a></h1>
    <$BlogItemBody$>
   </ItemPage>
  </Blogger>
 </body>
</html>
Save template and you are done with blogger setup.
Now you need to setup WordPress redirection.

Open functions.php and enter next lines
Code:
function blogger_query_vars_filter( $vars ) {
  $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();
}
or download and install plugin blogger 301 redirect

Now if you have feeds redirect feed
You can do this by logging in to your Blogger account and then visit Settings » Other page under your blog dashboard.

Under the Site Feed section, click on Add link next to Post Feed Redirect URL. Here you can enter your new WordPress site's feed address http://yourdomain.com/feed/
 
Older Threads
Replies
0
Views
1,824
Replies
3
Views
2,828
Replies
0
Views
2,297
Replies
1
Views
2,184
OWF
Newer Threads
Replies
5
Views
3,438
Replies
0
Views
1,920
Replies
0
Views
2,137
Replies
0
Views
2,147
Replies
0
Views
1,907
Latest Threads
Replies
0
Views
67
Replies
0
Views
102
Replies
1
Views
116
Replies
1
Views
121

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top