Help needed: Migrating from Blogger to WordPress


Home Forums Technical Support Help needed: Migrating from Blogger to WordPress

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #45436

    Hi there. Here are the details of what I have, have done, and would like to do (though I’m not sure what I’m doing):

    -I have a registered domain that I’m currently using w/ blogger and would like to continue using with WordPress

    -I have set up a “test” wordpress blog which is hosted on Godaddy

    -I’d like to eventually make the “test” into the new blog and make the proper DNS changes so that my main domain is directed to it. Godaddy told me this is possible. I just want to make sure.

    -I would like all my permalinks to stay the same, or at least lead to the proper place.

    I’m confused about which of your posts apply to me, though I’ve read your tutorials. Anything you can do to help make this as simple and as painless as possible would be appreciated.

    Ankit Puri

    You can use wordpress import feature to import all your blogspot posts to wordpress then all you need to do is set 301 perma redirection and change your permalinks to match with blogspot.

    The permalink structure will be like this /%year%/%monthnum%/%postname%.html

    This are the codes you need to add on your blogspot blog template for 301 perma redirection

    after <blogger> add

    <script language=”javascript”><!–
    var blog_root=;

    <script language=”javascript”><!–
    var process_page=””;
    var newpage=process_page;
    var oldlink=”<$BlogItemPermalinkUrl$>”;


    and after <head> add

    <meta http-equiv=”refresh” content=”0;url=” />

    Now create a bloggerposts.php on the root of your wordpress directory and add this code it, replace yourdomain with your blog name


    $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);
    $found_link = “;;


    <script language=”javascript”><!–
    document.location.href=”<?php echo ($found_link); ?>”;

    <meta http-equiv=”refresh” content=”2;url=<?php echo ($found_link); ?>”>

    <p>You can also proceed immediately to “><?php echo ($found_link); ?>.</p>
    <p>The main blog URL is</p>

    I hope this will help you.

    Rahul Bansal

    I am sorry for late reply buddy.

    This post is for you –

    You need to follow from step 2.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.