New Way to Redirect Blogger to WordPress

By Updated   BloggingTutorialsWordPress

Is there an easy way to redirect Blogger to WordPress with htaccess 301 redirects and canonical urls? We also started this blog on Blogger in 2004 and then migrated to WordPress in 2006. Long time readers will be aware of our challenges in making this major switch of a popular blog to a very new domain name.  But being on our own domain name and paid hosting server has been a very useful step towards site freedom and full server control.

Blogger to WordPress

So what is the way we switched from Blogger to WordPress?  While we kept the blogger blog live for many years, it was lot of duplicate content as we had migrated all posts to our domain name. Later we shortened the content, sometimes also tried a single page template with list of links to pointing to most visited articles, a big search box for new links –  but readers would simply not click through to the new pages and there was very high bounce rate.

redirect traffic

For some time we have set up the blogger blog such that links for the relevant articles redirect to same articles on main site. We found the following process resulted in better user experience as it let visitors be redirected to the actual posts from previous links. We tried to keep the SEO advantage of the links by pointing to the canonical urls.

I seek your valuable feedback if this a good technique.

Blogger Template Code

Here is the sample template code we use on our Blogger blog. Paste all the following code which we have tried to explain stepwise into the Blogger theme template.

First is the starting HTML code as used for any page.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

Now here is the canonical code which tells that the main blogger page is now on a new url.

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

Now we add the canonical tags for the item pages. Note here we have not used the permalink of the final url, but instead used the domain.com/ItemNumber  for the url. Blogger assigns each post a unique number and we take advantage of that.

<Blogger><ItemPage>
<link rel="canonical" href="http://www.quickonlinetips.com/<$BlogItemNumber$>" />
</ItemPage></Blogger>

Now to add the script to redirect the main blogger page to your domain name and each item page to your Domain.com/ItemNumber.

<script type="text/javascript">
<MainOrArchivePage>window.location.href='http://www.quickonlinetips.com/';</MainOrArchivePage>
<Blogger><ItemPage>
window.location.href='http://www.quickonlinetips.com/<$BlogItemNumber$>';
</ItemPage></Blogger>
</script>

Now to add the title of the page for each page.

<title><$BlogPageTitle$></title>

Close the Head tags and start the BODY tags

</head><body>

Now to add h1 tags to the page which is linked to the main page or the blog post page. Added move notice to support noscript cases. Again linked via Blog ItemNumber.

<p>This page has moved to a new address.</p>
<h1>
<MainOrArchivePage><a href="http://www.quickonlinetips.com"><$BlogTitle$></a></MainOrArchivePage>
<Blogger><ItemPage>
<a href="http://www.quickonlinetips.com/<$BlogItemNumber$>"><$BlogItemTitle$></a>
</ItemPage></Blogger>
</h1>
</body></html>

Full Code: Here is the complete code to cut and paste to your Blogger template. Remember to change your code for your domain name.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>

<MainPage><link rel="canonical" href="http://www.quickonlinetips.com/" /></MainPage>
<Blogger><ItemPage>
<link rel="canonical" href="http://www.quickonlinetips.com/<$BlogItemNumber$>" />
</ItemPage></Blogger>

<script type="text/javascript">
<MainOrArchivePage>window.location.href='http://www.quickonlinetips.com/';</MainOrArchivePage>
<Blogger><ItemPage>
window.location.href='http://www.quickonlinetips.com/<$BlogItemNumber$>';
</ItemPage></Blogger>
</script>

<title><$BlogPageTitle$></title>
</head>
<body>
<p>This page has moved to a new address.</p>
<h1>
<MainOrArchivePage><a href="http://www.quickonlinetips.com"><$BlogTitle$></a></MainOrArchivePage>
<Blogger><ItemPage>
<a href="http://www.quickonlinetips.com/<$BlogItemNumber$>"><$BlogItemTitle$></a>
</ItemPage></Blogger>
</h1>
</body></html>

This code does 3 things –

  • Canonical urls – which points to a domain url, which will eventually 301 redirect to the correct page. Note Google allows Cross domain canonical urls, which means you can point canonical urls from one to another domain to avoid duplicate content.
  • Redirects – The window in the browser refreshes to a new url and wordpress htaccess will eventually redirects the url to the new wordpress url. The user notices  no change in the browser and has nothing to click to the new url.
  • h1 tags – there are h1 tags which points to redirecting link with the blog / post title.

WordPress 301 Htaccess Redirects

Now all the urls will redirect to domain.com/ItemNumber. Now we will use the .htaccess on the domain name (which is under our control) to create 301 redirects from these Domain.com/ItemNumber urls to the appropriate post. Note we need to one redirect for each url, so if you have a large number of posts, you need to add all those redirects for them to work seamlessly.

Here is a snapshot of the htaccess codes in our file.

blogger htaccess redirect code

Basically you need to add in each line one redirect for each blog item number. Note that the .htaccess is a very powerful file in your server root folder which can bring your site down if not configured correctly. Always keeps htaccess backup before editing it.

redirect 301 /ItemNumber http://domain.com/url/
redirect 301 /ItemNumber2 http://domain.com/url2/
redirect 301 /ItemNumber3 http://domain.com/url3/

Here is what the code does – 

  • Redirects users automatically from  main blogger page to your domain name
  • Redirects users automatically from each individual blogger url to the final WordPress url.
  • Puts canonical urls in place. The canonical url points to a url, which has a 301 redirect to the final url.

This is good way if you want to completely move your blog to a new domain name and want a seamless transition of urls from Blogger to WordPress. If you are very concerned about SEO, Pagerank, traffic issues, please seek professional support on this.

Remarks

Note: Server side 301 redirects are the best way to redirect urls, along with passing pagerank. But blogger does not provide access to htaccess or server side redirects, so we use Javascript redirects  – but note many do not recommend such redirects and they might not pass pagerank. There is no guarantee that search engines will honor the url suggestions by canonical urls linked in this way. We leverage the control of .htaccess 301 redirects (which is a good way) to redirect these urls further.

Warning: This will make the blogger blog and all its urls disappear from search engines, since they are now redirecting to new urls. So do this only if you are really ready for this. Also note incorrectly editing htacccess  may take your site down.

Warning: This code is NOT approved by Blogger, Google, or anyone else. Please use this code AT YOUR OWN RISK. We don’t claim to be an expert on this can cannot provide support or predict in any way how it will affect your ranking, pagerank, indexing etc and bear no liability whatsoever.

IMPROVE THIS CODE – I seek your opinions and viewpoints on this technique. What are the drawbacks here and how can this code be made better. Post a comment.


38 comments on “New Way to Redirect Blogger to WordPress

  1. Rahul says:

    Great tips, but I need to move on to WordPress first.

    • P. Chandra says:

      WordPress is highly recommended. This articles is aimed for those who want to move to WordPress.

  2. M Nirmal Anandh says:

    Useful Information. But why we want to switch over blogger to wordpress. Here you didn’t say about that.

    • P. Chandra says:

      WordPress.org is hosted on your own domain name and hosting and gives huge growth potential and branding for your site in future.

  3. Ankur says:

    Hey,

    Why not simple use meta refresh with 0 seconds. Most Search engines consider them a 301 redirect.

    • P. Chandra says:

      That can be used only for the homepage – also it is not a good way to redirect pages from the SEO perspective.

  4. KABIR rana says:

    this is great .thanks for share it…..

  5. AMaan says:

    Next time,any blogger ask me about redirection.
    I will refer him to this article
    Nice article,Keep blogging !

  6. jhonmarshal says:

    Nice post.I hope it will work properly,if it is possible,it will be very helpful for me.

  7. Anirudh says:

    Will be buying hosting soon, will use this method. Thanks :)

  8. Kumar Suhas says:

    Hi P.Chandra, Importing blogger posts and categorie to WordPress is easy but keeping all the SEO is really difficult. The method show here using a 301 permanent redirect can really work. Thanks for sharing.

    • P. Chandra says:

      Actually the 301 redirect works after the javascript redirection, so not sure if the whole path will 301 redirect efficiently for search engines. Same for canonical urls.

  9. Riya Mathur says:

    Fully agree, Yes wordpress has more credibility and without losing info 301 method should be the best way to go, Thanks for the method

  10. oneclickroot says:

    i am also agree with kumar.wordpress has a lot of credibility

  11. Aditi says:

    Hello,
    Well this is true that wordpress is a much better blogging plattform than blogger. I like the steps that you have highlighted. Great!!

  12. manish says:

    a little confuse when always i signed up for word press…it will take my comments and when ill move to next blog to read or to comment it will again ask me to sign up…can anyone help …thanks

  13. rupak says:

    Nice post.I hope it will work properly,if it is possible,it will be very helpful for me.this is great .thanks for share it…

  14. Ankit Sharma says:

    Right way to change blogger to wordpress.

  15. Ninika says:

    Really a useful information sir. I tried and now working satisfactory.

  16. Paul D. Mitchell @ small business web design says:

    WordPress is the first and foremost choice to blog for bloggers. It is the best CMS also. Thanks for the post.

  17. Sid @ The Webinstitute says:

    Honestly, I feel that if your content is good, it shouldn’t matter whether you are at blogger or wordpress. Sites like mediacrooks is doing well on blogger too.

    Personally, I love wordpress.

  18. Kenton F. Mcguire says:

    of the directive, which means whether or not that directive is ALLOWED to be used inside of an .htaccess file. Htaccess files are incredibly powerful, and can also be very dangerous as some directives allowed in the main configuration files would allow users/customers to completely bypass security/bandwidth-limits/resource-limits/file-permissions, etc.. About 1/4 of all Apache directives cannot be used inside an .htaccess file (also known as a per-directory context config). The Apache Developers are well-regarded throughout the world as being among some of the best programmers, ever. To enable a disallowed directive inside a .htaccess file would require modifying the source code and re-compiling the server (which they allow and encourage if you are the owner/admin).

  19. Martina Iverson says:

    I have been wanting to transfer my blog to wordpress and this article has explained it thoroughly. Thanks so much for this post.

  20. Jaimin says:

    I am thinking to transfer my blog to word press and your blog is so much give me guidelines to do it. thanks for this post and this is what i am finding :D

    From,
    Technology Magazine

  21. Web Development says:

    Blogger to WordPress is a great option but 301 redirect can effect SEO.

  22. Djangoss says:

    Last week i run with my blog about cracks, hacks to games and other gifts. Beginning was difficult, but with your tips my positioning can be easy! WordPress is very helpful for beginner bloggers. ‘Now playing games will be easier’!

  23. Mariz says:

    A useful post indeed! I haven’t met clients yet consulting on this matter, but the info you’ve posted will come in handy. Thanks!

  24. Cecile Howe says:

    The above code is used to 301 redirect one file extension to another. This is useful if you just change your file extensions for your web pages and keep the same URL structure. The code in red is the file extension you want to redirect. The code in green is the domain name where the web pages are located. The code in blue is the actual file extension your redirecting to. The above code redirects all *.html requests to *.php and should be inserted into your root directories .htaccess file.

  25. Karnal Singh says:

    I also shifted from blogger to wordpress around 9 months back.It gives me a lot of freedom to handle my website better.I took the help of a professional and paid money for that.But your article make it very easy for even a amateur….Probably I could have done it myself….

  26. Fred WIlson says:

    Blogger to wordpress? Now, this is a cinch!
    Thanks for posting this content. A great help indeed for your readers.

  27. Anirudh says:

    Wohoo! Found the article at the right moment. I have my new site coming up this week which is currently hosted in Blogger. Purchased Hosting a week before, now time to migrate! Thanks for the awesome tut! Cheers :)

  28. Klorean cams says:

    I have transferred my blog to wordpress. Check it guys

  29. Harmeen says:

    I have used both WordPress and Blogger. So my opinion is WordPress is best and Blogger Sucks. We have a lot of option in WordPress Blog and can do everything with plugins etc. What you views?

  30. Kaur says:

    When we first shift from Blogger to WordPress we face a lot of difficulties while doing SEO and I am still learning how to do SEO in WordPress. Any Tips?

  31. Steven smith says:

    Thanks for sharing such wonderful article. This article is very helpful for beginners like me who just joins this world of blogging.

  32. Kravu pārvadājumi says:

    Finally, one person has explained it correctly. Thanks for that.

  33. Rashedul @ welding helmet hq says:

    That’s a very nice post. wish it work correctly.

  34. inteser says:

    great post!now i can move all of my contents from blogger to wordpress easily.

Leave a Reply

Your email address will not be published. Required fields are marked *




css.php