Ready to get started?Download WordPress


Blogger To WordPress
[resolved] The plugin not working when coming from blogger load bala (2 posts)

  1. burlyman
    Posted 2 years ago #

    If you are in Japan, then someblog.blogspot.com/blah is redirected to someblog.blogspot.jp/blah which then is redirected to the new intended domain someblog.com/?b2w=someblog.blogspot.jp/blah which will result in a "page does not exist", even though someblog.com/blah really exists.

    I fixed this by editing b2w-redirection.php, to replace *.blogspot.* with *.blogspot.com. I propose this patch:
    Index: b2w-redirection.php
    --- b2w-redirection.php (revision 551541)
    +++ b2w-redirection.php (working copy)
    @@ -160,6 +160,7 @@
    $b2w = (isset($_GET['b2w']))?$_GET['b2w']:false;

    if ($b2w) {
    + $b2w = preg_replace('!^(https?://\w+.blogspot).\w+!', '\1.com', $b2w, 1);
    global $wpdb;
    $sql = "SELECT DISTINCT meta_value FROM {$wpdb->postmeta} where meta_key = 'blogger_blog'";
    $results = $wpdb->get_results($sql);


  2. nitun
    Plugin Author

    Posted 1 year ago #

    The latest version of this plugin fixed such country wide URL redirection.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.