Plugin Directory

Changeset 727633


Ignore:
Timestamp:
06/17/2013 08:28:21 PM (12 years ago)
Author:
sudiptomahato
Message:

added option to remove parameters from URL

Location:
blogger-301-redirect
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • blogger-301-redirect/trunk/bloggerredirect.php

    r645868 r727633  
    66Author URI: http://techxt.com
    77Author: Sudipto Pratap Mahato
    8 Version: 2.0
     8Version: 2.1
    99*/
    1010
     
    3030        }   
    3131        $permalink = explode("blogspot.com", $old_url);
     32        if(strpos($permalink[1],"?")!==false && get_option('rev_p')=="checked")
     33        {
     34            $pl = explode("?", $permalink[1]);
     35            $permalink[1]=$pl[0];
     36        }
    3237        $new_url="";
    3338        if(get_option('pfeed_re')=="checked" && $new_url == "")
     
    147152    <td><input type="checkbox" name="archi_re" value="checked" <?php echo get_option('archi_re'); ?> />Redirect Blogger archives to Wordpress (Recommended)<br /> Check this if you want to redirect <b>http://example.blogspot.com/yyyy_mm_dd_archive.html</b> => <b>http://example.com/yyyy/mm/</b></td>
    148153    </tr>
     154    <tr valign="top">
     155    <td><input type="checkbox" name="rev_p" value="checked" <?php echo get_option('rev_p'); ?> />Remove parameters from URL <br /> Check this if you want to redirect <b>http://example.blogspot.com/xyz.html?m=1</b> => <b>http://example.com/xyz.html</b></td>
     156    </tr>
    149157    </table>
    150158    <input type="hidden" name="action" value="update" />
    151     <input type="hidden" name="page_options" value="adv_ser,home_re,pfeed_re,cfeed_re,archi_re" />
     159    <input type="hidden" name="page_options" value="adv_ser,home_re,pfeed_re,cfeed_re,archi_re,rev_p" />
    152160    <p class="submit">
    153161    <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
  • blogger-301-redirect/trunk/readme.txt

    r645868 r727633  
    55Requires at least: 3.0
    66Tested up to: 3.5
    7 Stable tag: 2.0
     7Stable tag: 2.1
    88
    99Useful for mapping your Blogger post and feeds to Wordpress posts and feeds after blogger to wordpress migration.
Note: See TracChangeset for help on using the changeset viewer.