WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Blogger To WordPress Redirection] The plugin not working when coming from blogger load bala

[Resolved] [Plugin: Blogger To WordPress Redirection] The plugin not working when coming from blogger load bala

  • 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);

    http://wordpress.org/extend/plugins/blogger-to-wordpress-redirection/

Viewing 1 replies (of 1 total)
  • Plugin Author Nitun

    @nitunlanjewar

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

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Blogger To WordPress Redirection] The plugin not working when coming from blogger load bala’ is closed to new replies.