How To 301 Redirect Wordpress Posts To New Link Structure Using .htaccess?

Discussion in 'Programming' started by musiclover, Sep 6, 2010.

  1. #1
    Hello! there,

    I have a wordpress blog setup the following way using permalinks feature:

    http://www.mydomain.com/blog-post.html
    http://www.mydomain.com/blog-post-2.html
    http://www.mydomain.com/blog-post-3.html

    and I've now decided to add the following structure:

    http://www.mydomain.com/read/blog-post.html
    http://www.mydomain.com/read/blog-post-2.html
    http://www.mydomain.com/read/blog-post-3.html

    So how do I 301 redirect all the old links to new structure using htaccess?

    I've tried many methods while doing a research on Google but still haven't found the solution. So anyone here to help me with the problem?

    Thanks!!
     
    musiclover, Sep 6, 2010 IP
  2. extremephp

    extremephp Peon

    Messages:
    1,290
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Check This Out, And things get done without much Worries :D

    http://wordpress.org/extend/plugins/permalinks-migration-plugin-for-wordpress/
    Code (markup):
    ~ExP~
     
    extremephp, Sep 6, 2010 IP
  3. musiclover

    musiclover Well-Known Member

    Messages:
    142
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Thanks buddy. It works perfectly.

    Cheers!! :cool:
     
    musiclover, Sep 6, 2010 IP
  4. asirius

    asirius Guest

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    asirius, Sep 7, 2010 IP