How to redirect Blogger Beta to Wordpress.com (Laffers.net)

Blogger to WordPress image - courtesy of Digital Inspiration

This was originally a post at Laffers.net, but I’m getting constant timeouts to that site, so I’m going to repost it here, just in case Laffers.net has gone down.
This copy was captured by the Google Cache as it appeared on 24 Dec 2009 04:44:07.

I refer to this article in the following two posts of mine:
So you want to move from Blogger to a WordPress blog & Things I learnt when migrating from Blogger


If you are like me and have decided to move your blog from blogspot.com to wordpress.com (the shared Wordpress hosting site), you are asking yourself three questions:

  1. How to redirect visitors to the old blog automatically to the new pages.
  2. How to transfer the PageRank of your old blog to the new one.
  3. How to prevent being penalized by Google for duplicate content.

Is it possible ? Read on.

First of all, let me give credit where credit is due – there are some instructions already published

  • Tom Sherman has a nice manual for moving from the old Blogger to self-hosted Wordpress.
  • TechCounter similar to the one above but contains erroneous information about preserving PageRank.
  • Webbleyou is a tutorial for migrating from Blogger Beta, but I find it unnecessarily complicated.

Bottomline: None of those tutorials work for moving to the shared hosting on Wordpress.com!

how to do it

Here are the answers to the three questions:

  1. Redirect your visitors by combining JavaScript and meta tag redirects. Read below.
  2. Bad news, this is not possible. Tom Sherman correctly states

    This would require a 301 Permanent Redirect and access to the server, not provided by Blogger.

  3. If you don’t want to be punished by Google for duplicating content you must remove the old blog from the Google cache and tell it to ignore the old site from now on. Read below below.

set up redirects

I’m assuming that at this point you have imported your posts to the new blog at Wordpress.com (if not, go to "Manage/Import", select the obvious choice and do what you’re said).

Log into your Blogger account and click your way through the awkward navigation menu until you are at the "Template/Edit HTML" page. To redirect visitors from the main page, insert the following between the <head> and </head> tags:

<meta content='6;url=http://yournewblog.wordpress.com/' http-equiv='refresh'/>

Number 6 means that the redirection will take effect after 6 seconds. Replace the url with your own.

The tricky part comes now. We want to redirect users from individual post pages to the corresponding post pages on the new blog. For that, we need a piece of JavaScript spiced with Blogger proprietary tags. Insert the following right after "<b:section class='main' id='main' showaddelement='no'>" in the template:

<b:widget id='Redirector' locked='true' title='Blog Posts' type='Blog'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "item"'>
<b:loop values='data:posts' var='post'>
<script type='text/javascript'>
var new_page=&#39;yournewblog.wordpress.com/&#39;;
var permalink = &#39;<data:post.url/>&#39;;
var timestamp = &#39;<data:post.timestamp/>&#39;;
timestamp = timestamp.split(&#39;/&#39;);
timestamp = timestamp[2]+&#39;/&#39;+timestamp[0]+&#39;/&#39;+timestamp[1];
new_page = permalink.replace(/youroldblog\.blogspot\.com\/2007\/[0-9]{2}/,new_page+timestamp);
new_page = new_page.replace(/\.html$/,&#39;&#39;);
document.location.href = new_page;
</script>
</b:loop>
</b:if>
</b:includable>
</b:widget>

Don’t forget to enter your new blog’s URL at var new_page = .

Important note! For this script to work, all your posts should have been imported to Wordpress.com using their Manage/Import function. The creation dates of all posts must match, because they are part of the permalinks.

remove duplicate content

Insert the following between the <head> and </head> tags:

<meta name="ROBOTS" content="NOINDEX, NOFOLLOW"/>

After seeing this, search engines should remove your old blog from their cache and the old content will stop existing for them. Therefore they are not going to penalize your new blog for duplicate content.

optionally, display a message

This is not required, but helpful for your readers. Tell them that you have moved and that they are going to be redirected. Right after the <body> tag, insert this:

<div style='position: absolute; top: 30px; left: 30px; border: solid 2px #333; color: #000; background-color: yellow; padding: 5px; width: 400px; z-index: 5; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: large;'>
<p><strong>My blog has moved!</strong></p>
<p>You should be automatically redirected in 6 seconds. If not, visit<br/> <a href='http://yournewblog.wordpress.com/'> <strong>http://yournewblog.wordpress.com</strong></a> <br/> and update your bookmarks.</p>
</div>

Well, now we are set. Found any errors in this tutorial or have more tips? Share them in the comments please. :-)

Except where otherwise noted, this work is licensed under a Creative Commons License.
© 2005-2008 richard laffers

Bookmark and Share

Things I learnt when migrating from Blogger

Blogger to WordPress image - courtesy of Digital Inspiration

So you want to move from Blogger to WordPress?  I don’t blame you, Blogger has it’s limitations.

The one’s which annoyed me were:

  • not being able to use my own domain (wisefaq.com) with Blogger.
    (yes, I know there are some hacks you can use, but I didn’t want the world to see my underwear was stamped with Blogger).
  • not being to use meta strings.
  • lack of support.  You’d identify a bug with Blogger, and Blogger support would say that it would be fixed in a ““future”” release.

So I struck out on my own, and have learnt a few things along the way. (more…)

11 WordPress Plugins

It’s been a while since I last published the plugin list used here, so it’s time for an update:

What I’m using now:

All in One SEO Pack
I still use this on the technical posts, as my efforts to use Windows Live Writer to do this, didn’t work.  The problem is that you can’t manipulate html directly in Live Writer.

dagon-design-logo Dagon Design Sitemap Generator
This sitemap generator creates the Category page.
I use the Category page to: a) find something quickly, and b) see if I’ve miscategorised something.
This plugin works and rarely has an update to it.  That’s a good thing, as it means it’s stable.

ECHO by JS-Kit
The replacement commenting plugin I’ve mentioned previously.

Future Calendar
In the WordPress “Posts” option, this plugin tells me what days in the future already has posts.  I try and post a few days into the future.

Google Analytics
Google Analytics is the most honest way I’ve got to measure site visits.  I tried using AWstats, and you can read about that here: How do I measure thee- … or site stats for dummies.

(more…)

Make it go faster – Expires Headers

apache_feather Or, Wisefaq now tells your web browser that it’s ok to cache graphics (GIF/PNG/JPG/JPEG/ICO), Javascript and CSS.

“This would be important because??”, you ask.

Well when you visit again, your web browser will use it’s copies of the graphics/Javascript/CSS, instead of downloading them again.

A win for you (speed), and me (bandwidth).

Hooray for us!

So how did I manage this?

Wisefaq sits on an Apache web server. (more…)

Scoble got his Wordpress blog hacked

And there is a lesson in that.

then expect to be hacked.

Especially if you’re high profile like Scoble.  Robert, you have my sympathy.

I run two backups here.  A whole web server backup, and a WordPress Database Backup.

And I’ve used both, at times, to recover from stupidity on my part.

And no Virginia, backups won’t keep you secure.  But they’ll allow you to recover from mistakes, or hacking.

If you run a WordPress blog, and you’re not at release 2.8.4, you should upgrade now.

Bookmark and Share

Make it go faster – Enabling GZip Compression

Things were getting slow around here, as you can see with the results from ismyblogworking.com.
ismyblogworking-results-1

Now WordPress, in versions before WordPress 2.5, had a GZip compression option.  It was removed in v2.5 because WordPress thought it was better to implement compression at the OS level.  All fine and good, but by default, my hosting provider does not do compression.

The quick performance fix was to enable compression.  But how???

(more…)

WordPress 2.8.1 upgrade

Upgraded from WordPress 2.7.

Things which broke:

Everything else seems ok?!?

(Things are going to be quiet around here for the next couple of days, work commitments etc.)

“WiseFaq is now touch compatible”

wp-mobile-version-3 Since I wrote Why this blog looks better on a mobile phone, where I talked about using the WordPress plug-in WordPress Mobile Edition, to improve how the blog is displayed on a mobile/cell phone.

Well WordPress Mobile Edition has gone though a major update, and the best thing is that it is easier to use with “touch” browsers (iPhone, HTC Touch etc.).

But a word of warning for WordPress bloggers, it is not compatible with the WP plug-in auto-upgrade feature.

You can download WordPress Mobile Edition here.

Bookmark and Share

Blog update – now with Google Search

The default search was broken, so I’ve replaced it with a Google plug-in.  The search page looks rough around the edges, but at least it works now.

Dosh Dosh had the best set of instructions on How to Set up Google Custom Search for Your Website …

Bookmark and Share

Tracking future blog posts

I try and keep at least a week ahead with blog posts.  And sometimes I forget where I’ve last posted up to.

WordPress doesn’t make it easy either, with this display for when posts are going to happen:

days-from-now

So, I’ve been looking around for something to help me.  Enter Future Calendar by Aaron Harun.
“A simple plugin that utilises a modified get_calendar function that shows what dates have a future post scheduled in a calendar format, and makes it easy to change the current timestamp.”

Here’s the difference:

Future-Post-Calendar

As you can see, there will be something for almost every day in January.

Bookmark and Share

Page 1 of 212»

Calendar

March 2010
S M T W T F S
« Feb    
 123456
78910111213
14151617181920
21222324252627
28293031