WordPress.org

Forums

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

  1. burlyman
    Member
    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);

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

  2. nitun
    Member
    Plugin Author

    Posted 2 years 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

  • Blogger To WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.