Hacks and Tweaks


June 19, 2012

Redirect all Blogger posts to WordPress/self domain posts(Step by step instructions with Screenshots)

More articles by »
Written by: arunenigma
Tags: , , , , ,

The steps below are to followed after you have moved all your blogger posts into newly created WordPress/self-hosted WordPress website/blog.

Note: You can refer here for instructions on how to move all your Blogger posts into WordPress blog.

This post primarily deals with the redirection part. Redirecting all your Blogger posts to your newly created/moved WordPress posts is very essential so as to maintain the traffic which you had with Blogger. In a way, redirecting your old faithful visitors to your new site, help you gain quicker and better indexing by Google and search engines thereby paving an easier way to improve your site rankings fast. Without being exposed to traffic, your site/blog is basically dead and it takes time for search engines to index and rank the posts. So by redirecting, you are basically banking on the old traffic and help your site achieve good indexing and ranking much faster. After doing a little research, I found that the process of moving all of your content is even easier than I thought it would be. The bigger trick lies in making sure that Blogger redirects all your traffic to your new WordPress site so that anyone visiting your old addresses is sent to your new site. This of course doesn’t stop with your human visitors; you want to make sure that search engine spiders also know that your site has moved from Blogger to WordPress, so that you don’t lose any rank that you may have attained with them.

So, let’s start with copying your site to WordPress.

Copy Blogger to WordPress (Recap). Complete Instructions with Screen Shots here.

If you haven’t already, install WordPress. If you’re looking for hosting, I would like to recommend GoDaddy. Once you’ve installed WordPress, you’ll want to use the importer to copy your content from your existing Blogger site, to your WordPress site. Go to Tools > Import and select Blogger as the source. If you’re prompted to install the Blogger Importer, do so, activate it and then go back to Tools > Import and select Blogger once more.

At this point, you’ll be asked to Authorize WordPress to access your Blogger account, so that it can copy all of the content. Follow the on-screen instructions and in a couple of minutes, all of your content will have been copied to your WordPress site. And we’re half-way there.

If you have had issues with this method, there is an alternative: sign in to your Blogger dashboard and go to Settings > Other. Choose the Export Blog feature and download the file with all of your content and comments.
Then use this tool to convert that file from Blogger format to a WordPress format. Once you download the converted file, you can then go to Tools > Import and select the WordPress option (since the format has been converted) and complete the import that way.


Redirect Blogger posts to WordPress

Now you need to put a file into your WordPress themes directory, that will take the redirected traffic and send it to the right page in your new WordPress site. Copy the following code (courtesy of digital inspiration) and paste it into a new file called blogger-redirection.php, which you’ll put in wp-content/themes/youractivetheme, where youractivetheme is the folder name for the theme that you’re using on your WordPress site (see screenshots below)

Note: You’ll have to place to this script to your new theme folder, if you happen to change theme later.

Now create a new page in WordPress, called blogger (it is important that you call it blogger and nothing else) and select the Page Template as the Blogger Redirection template that we just installed (see screenshots below). Save the page. Now that WordPress is ready to receive your redirected traffic, you need to make some changes to Blogger to send the traffic over to your WordPress site.

Log in to Blogger and from the Dashboard, go to the Settings page for the blog in question, then on to the Design tab, and the Edit HTML sub-tab. Click on Revert to Classic Template (which is at the bottom) and Click OK if it ask for confirmation. Then copy the following code into the text box in the middle of the screen, replacing with your new domain name (in all 6 instances). Be sure to leave the http:// and the trailing slash in place.


Save the changes and you should be all set. Try going to one of your old Blogger pages and make sure that you end up at the equivalent page in WordPress.

Resolving 404 error and other issues due to mismatch of permalinks:

If clicking on your old links results in you arriving at either your homepage, or a 404 error page, you may need to change your permalinks to match your old Blogger format. That is usually /%year%/%monthnum%/%postname%.html. If you want to use a different permalink format, consider redirecting your permalink structure from the old Blogger format to your preferred format.




About the Author

Computer Science Graduate Student @ Case Western Reserve University, Cleveland, USA



Python Factory Design Patterns using Switch Case

I googled for Factory Method Design Pattern in Python but couldn’t find a good resource. So, I  am sharing an example program to demonstrate this design pattern in Python which I frequently use. The factory method pattern is...
by arunenigma


Conway’s Game of Life Implemetation in Python with cool patterns

he Game of Life (or simply Life) is not a game in the conventional sense. There are no players, and no winning or losing. Once the “pieces” are placed in the starting position, the rules determine everything that ha...
by arunenigma


Python AVL Tree Implementation with ASCII visualization

n computer science, an AVL tree is a self-balancing binary search tree. It was the first such data structure to be invented. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any tim...
by arunenigma



Binary Search Tree in Python with ASCII art visualization

Binary search tree implementation in Python with: in, post and pre-order traversals. Also includes methods for insertion, deletion and search of nodes. Deletion is fairly complex and is made possible by keeping track of parents...
by arunenigma


Python, Memoization, Dynamic Programming, Fibonacci Series and some Fun!

ython can implement the recursive formulation directly, caching return values. Memoization is a method where if a call is made more than once with the same arguments, and the result is returned directly from the cache. For exam...
by arunenigma



Be the first to comment!

You must be logged in to post a comment.