Change all the Links in the Posts From No-Follow to Do-Follow (or Default)

Discussion in 'WordPress' started by worms11, Sep 7, 2012.

  1. #1
    Hello,

    Is their a plugin or any way to change the links in my post from No-Follow to Do-Follow (Or Default). I have like 100 + posts which have links to sites which are No-Follow Links I want to change them to Do-Follow Links.. Kindly Help.

    Thanks,
    Worms11
     
    worms11, Sep 7, 2012 IP
  2. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #2
    Devtard, Sep 7, 2012 IP
  3. Dean_Saliba

    Dean_Saliba Notable Member

    Messages:
    1,210
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    225
    #3
    There is also this plugin if you feel uneasy about digging around in your database. :)
     
    Dean_Saliba, Sep 7, 2012 IP
  4. worms11

    worms11 Member

    Messages:
    129
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #4
    works only for Comments. Thanks though..

    Well, Didnt really understand how it works. Still trying to figure out.
     
    worms11, Sep 12, 2012 IP
  5. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #5
    This query should delete the rel="nofollow" parameter (with a space before it) from links in all your posts. It worked fine for me, but I recommend you creating a database backup first before executing it.

    UPDATE wp_posts SET post_content = replace(post_content, ' rel="nofollow"', '')
    Code (markup):
     
    Devtard, Sep 12, 2012 IP
    worms11 likes this.
  6. worms11

    worms11 Member

    Messages:
    129
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #6
    Thanks it worked :)
     
    worms11, Sep 12, 2012 IP