As discussed here http://drupal.org/node/1233834#comment-6529874, it would be good to have a template generator for blogger/blogspot sites so that each page redirects to its new home on the new Drupal domain. The Wordpress plugin has a generator built in.

There is an article here that has a sample template. It is probably not too hard to make some fields available to plugin to this and generate a copy paste template for the user. It is a bit over my head right now but I am picking Drupal up more and more every day and may be something I can do in a month or 3 if nobody does it before then.

Below is a sample template:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" 
   dir="<$BlogLanguageDirection$>">
<head>
<title><$BlogPageTitle$></title>
<script type="text/javascript">
 <MainOrArchivePage>window.location.href='http://labnol.org/'</MainOrArchivePage>
 <Blogger><ItemPage>
   window.location.href='http://labnol.org/blogger/?q=<$BlogItemPermalinkURL$>'
 </ItemPage></Blogger>
</script>
<MainPage><link rel="canonical" href="http://labnol.org/" /></MainPage>
<Blogger><ItemPage>
 <link rel="canonical" href="http://labnol.org/blogger/?q=<$BlogItemPermalinkURL$>" />
</ItemPage></Blogger>
</head><body>
<div style="border:#ccc 1px solid; background:#eee; padding:20px; margin:80px;">
<p>This page has moved to a new address.</p>
<h1>
 <MainOrArchivePage>
  <a href="http://labnol.org"><$BlogTitle$></a>
 </MainOrArchivePage>
 <Blogger>
   <ItemPage>
    <a href="http://labnol.org/blogger/?q=<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a>
   </ItemPage>
 </Blogger>
</h1>
  </div>
 </body>
</html>
<!-- replace labnol.org with your WordPress site URL --->

Comments

elijah lynn’s picture

Here is some more info on how the redirect works, this is copied from http://blogger2wordpress.com/:

Let me explain you how the “.blogspot.com” to “.com” migration works. Hope I don’t confuse you.
Blogger.com doesn’t provide you with the facility to 301 redirect people and robots to any other site. So, we use a link parameter called rel=”canonical”. Initially, this was used to prioritize in-domain URLs but now, all major search engines have agreed to use it cross domain. See the last question here http://www.google.com/support/webmasters/bin/answer.py?answer=139394 .
Here, we make a template on blogger with rel=”canonical” and meta refresh to http://yourdomain.com?blogger=http://your.blogspot.com/blah-blah.html. rel=”canonical” tells the search engine robots to “crawl this yourdomain.com URL next time you come across the blogspot URL”.
“Meta refresh” refreshes the webpage and redirect to yourdomain.com URL as soon as a real person opens your website.
On the other side (wordpress) we 301 redirect http://yourdomain.com?blogger=http://your.blogspot.com/blah-blah.html to the original wordpress URL.
Now, for this to work, you have to import your posts using the “Blogger Importer” given in the WordPress tools as it adds a meta data value with the blogger URL. Copy Pasted stuff will NOT work.
Custom domain to WordPress is a pure 301 redirect.

I am not quite clear on the last part of "it adds a meta data value with the blogger URL. Copy Pasted stuff will NOT work.".