How to move from blogger to wordpress with 301 permanent redirect without loosing traffic

Recently we have to move our blog from blogger to self hosted wordpress  for better SEO opportunities.

We went through certain difficulties while moving from blogger to wordpress.So we decided to do a little research on other similar  articles on the net  and came up with this all new blogger to wordpress without loosing traffic guide

Before you migrate you must have a domain name and hosting ready with you

Our objectives for this migration:

*Switching from blogger to wordpress with all posts and comments

*Without loosing any traffic

*Without any 404 error pages

*To redirect your visitors to the desired posts rather than just home page

Note: Install worpress in the root directory (www or /public_html) using file manager

You can also take a look at how to install wordpress if your host does not provide a quick install here

Install wordpress in free unlimited hosting like x10 hosting

Changing the permalink structure to match with blogspot url

1.Before you import all your posts first go to Settings>Permalinks option

Change  your Custom Structure as given

/%year%/%monthnum%/%postname%.html

2.You may have some trouble with redirection if you have changed the title of posts after publishing.For this change the permalink to match the blogpost url by using edit post option

3.Then choose Tools munu>Import option and choose your blogging platform as follow the steps mentioned in how to import blog posts to wordpress

4.All of your posts and comments will be imported into your new site.

 

Getting  all your blogspot visitors back

Now you have to redirect all your visitors to your new site.To avoid copyright we are using 301 permanent redirect

1.Login to Blogspot >Dashboard > Design > Edit Html tab

Switch to classic template

blogger-to-wordpress

blogger-to-wordpress

2.Add this meta tag between right after the <head> ,replace  the dots  with your site’s name

<meta content=’NOINDEX, NOFOLLOW’ name=’ROBOTS’/><meta content=’0;url=http://www…………com/’ http-equiv=’refresh’/>

 

The no ‘0’ denotes the time in seconds for redirection,you can change this if you want to inform your readers that your blog has been migrated.

3.Find  <blogger> and copy and paste the below code after that

<MainOrArchivePage>
<script language=”javascript”><!–var blog_root=”http://………….com/”;document.location.href=blog_root;//–></script>
</MainOrArchivePage>
<ItemPage>
<script language=”javascript”>
<!–var process_page=”http://……………..com/blogspot.php”;var newpage=process_page;var oldlink=”<$BlogItemPermalinkUrl$>”;
newpage+=”?p=”+oldlink;newpage=newpage.toLowerCase();document.location.href=newpage;//–></script>
</ItemPage>

4.Replace yoursite with your site’s name , save the template.

5.Copy and paste this code below into notepad ,replace ……. with your site’s name and save the file as blogspot.php

<?php require($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php'); $search_link = $_GET['p']; $vars = explode('/', $search_link); $num = count($vars) - 1; $filename = $vars[$num]; $slug = str_replace(".html", "", $filename); $SQL = "SELECT posts.* FROM $wpdb->posts AS posts WHERE posts.post_name = '$slug' LIMIT 1"; $posts = $wpdb->get_results("$SQL"); if ($posts) { foreach ($posts as $post) { $found_link = get_permalink($post->ID); } } else { $found_link = "http://www......com/"; } ?> <html> <head> <title>Redirecting...</title> <script language="javascript"><!-- document.location.href="<?php echo ($found_link); ?>"; //--></script> <meta http-equiv="refresh" content="2;url=<?php echo ($found_link); ?>"> </head> <body> <h1>Redirecting...</h1> <p>You can also proceed immediately to <a href="<?php echo ($found_link); ?>"><?php echo ($found_link); ?></a>.</p> <p>The main blog URL is <a href="http://www.....com/">www.......com/</a>.</p> </body> </html>

 

6.Upload  blogspot.php  into  root of your domain using an Ftp software like filezilla

7.Now your 301 redirection is all set to rock and roll.

You might also like to read:

How to install wordpress in free unlimited hosting like koolserve x10 guide

Must do settings for your wordpress 3.1.2 after installing

“Creating a self hosted wordpress blog for free”-Blogger’s guide

If you have any trouble,feel free to ask.If you feel uncomfortable with these kind of stuff you can hire me for blogspot to wordpress service

You always  can hire us at a low cost.

Contact me on twitter , technoblog001[at]gmail.com or through our contact page.

Meet the Author

Gowtham V
3 comments… add one
  • Jay May 13, 2011, 2:41 pm

    Wow that is a really nice tutorial – Keep it up!

    • gowtech May 13, 2011, 7:58 pm

      Thanks jay…for your valuable comment…

  • Geo Jolly Dec 27, 2011, 7:28 pm

    Thanks a lot for the info..happy blogging…

Leave a Comment