Plugin Directory

Changeset 531808


Ignore:
Timestamp:
04/16/2012 02:14:56 PM (14 years ago)
Author:
suhas93
Message:

Fix the local domain redirect

Location:
seo-blogger-to-wordpress-301-redirector
Files:
10 added
2 edited

Legend:

Unmodified
Added
Removed
  • seo-blogger-to-wordpress-301-redirector/trunk/readme.txt

    r482692 r531808  
    55Requires at least: 2.6
    66Tested up to: 3.2.1
    7 Stable tag: 0.3.9
     7Stable tag: 0.4
    88
    99This plugin will 301 redirect all incoming traffic from your Blogger account to your newly setup Wordpress account. Move from Blogger to wordpress with great ease.
     
    6868== Upgrade Notice ==
    6969
    70 = 0.3.4 =
    71 This is basically the old stable version of the plugin.
     70= 0.4 =
     71With this update, blog.blogspot.au/in/whatever local domain will be redirected.
  • seo-blogger-to-wordpress-301-redirector/trunk/seo-blogger-to-wordpress.php

    r482692 r531808  
    44Plugin URI: http://suhastech.com/seo-blogger-to-wordpress
    55Description: This plugin will 301 redirect all incoming traffic from your Blogger account to your newly setup Wordpress account. Please read the documentation at suhastech.com/seo-blogger-to-wordpress before you continue.
    6 Version: 0.3.9
     6Version: 0.4
    77Author: Suhas Sharma
    88Author URI: http://suhastech.com
     
    374374 if ($old_url != "") {
    375375 
    376    $permalink = explode("blogspot.com", $old_url);
     376   $permalink = preg_replace("/http:\\/\\/[a-zA-Z0-9]+.blogspot.[a-zA-Z0-9]+/", "", $old_url);
    377377   $url = explode("?", $permalink[1]);
    378378   $res = $wpdb->get_results("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = 'blogger_permalink' AND meta_value = '$url[0]'");
Note: See TracChangeset for help on using the changeset viewer.