How can I change nofollow to dofollow in Wordpress?

paulgl

Member
Joined
Dec 27, 2012
Messages
94
Points
8
I am running a Wordpress blog and guest authors asked me to change the nofollow links to dofollow links for their posts created last time. There are a lot of works to do if I open every posts and change that manually. How can I change nofollow to dofollow in Wordpress quickly? I would like to know if I can do that with commands or via a plugin.
 

Hostens

New member
Joined
Jan 11, 2017
Messages
41
Points
0
You can always change the wanted links/information via the database. This function for sure is available on the PHPMyAdmin. Press on the table, then go to "Search and Replace", enter the text you wish to replace and you will see all the lines that will get replaced before you continue. Make sure you have a database copy before you make any changes.
 

Marc van Leeuwen

Premium Member
Joined
May 29, 2016
Messages
1,132
Points
63
You need to install Better Search Replace plugin of Delicious Brains, that will help you to change nofollow to dofollow link in Wordpress with some clicks.
Just replace rel="nofollow" with an empty value and the rest this plugin will do for you.
 

Goyum

New member
Joined
Dec 7, 2017
Messages
62
Points
0
The attribute that defines a link as NoFollow is rel=“nofollow”. If you remove the rel=“nofollow” attribute, then your link becomes DoFollow. There is no dofollow value. The absence of the nofollow value makes the link a DoFollow.

The code is added to your theme's functions.php file. The core WordPress code is not modified in any way.


This plugin "DoFollow Case by Case" should do the job: it allows to add dofollow / nofollow on author basis.
 

wiseman007

New member
Joined
May 25, 2020
Messages
1
Points
1
I am using the same plugins and it really works, this is very simple. WP External Links seems to be the best one so far
 

paulgl

Member
Joined
Dec 27, 2012
Messages
94
Points
8
Thanks all for your recommendations but to be honest I didn't like using a plugin because it will consume more resource from my website or server, I would like to use a manual way instead like a updated query from mysql or something else.
 

greenhostcloud

New member
Joined
Mar 17, 2024
Messages
25
Points
3
greenhostcloud
You can update the post content directly in the WordPress database using SQL queries. Use a tool like phpMyAdmin to run a query that finds and replaces all instances of rel="nofollow" with rel="dofollow". Back up your database before making any changes.
 

gplforever.com

New member
Joined
Mar 3, 2024
Messages
16
Points
3
You can definitely save yourself a lot of time and effort by using a plugin to change the nofollow links to dofollow links in WordPress. One popular plugin that can help you with this is called "Ultimate Nofollow".

After installing and activating the plugin, you can go to your WordPress dashboard, navigate to the post where you want to change the links, and then simply edit the post. Within the post editor, you'll see the option to toggle between nofollow and dofollow for each link.

Alternatively, if you're comfortable with coding and prefer a more hands-on approach, you can use a command to search and replace the nofollow attributes within your posts. However, this method requires some technical knowledge and might be riskier if not done correctly.

But for most users, the plugin route is the quickest and safest way to make these changes across your site.
 

aggravateduneven

New member
Joined
Apr 16, 2024
Messages
1
Points
1
  1. Manual Method:
    • Log in to your WordPress dashboard.
    • Navigate to the post editor for each post containing the nofollow links.
    • Switch to the Text or HTML view in the post editor.
    • Locate the nofollow attribute (rel="nofollow") within the <a> tags.
    • Remove the nofollow attribute to make the links dofollow.
    • Update or save the post.
  2. SQL Command:
    • This method involves running a SQL command to update the database directly. It's essential to make a backup of your database before proceeding, as direct database modifications can be risky.
    • Use a tool like phpMyAdmin or connect to your database via command line.
    • Run a SQL command to update the post content and replace nofollow with an empty string:
      sqlCopy code
      UPDATE wp_posts SET post_content = REPLACE(post_content, 'nofollow', '') WHERE post_content LIKE '%nofollow%';
    • Make sure to replace wp_posts with your actual WordPress posts table name.
  3. Plugin Method:
    • There are plugins available in the WordPress repository that can help you bulk edit links, including changing nofollow to dofollow. One such plugin is "Nofollow Manager." Here's how you can use it:
      • Install and activate the "Nofollow Manager" plugin from the WordPress plugin repository.
      • Once activated, go to the plugin settings.
      • Look for an option to convert all nofollow links to dofollow links.
      • Follow the instructions provided by the plugin to perform the conversion.
 
Older threads
Replies
7
Views
6,258
Replies
14
Views
12,037
Replies
4
Views
29,155
Replies
2
Views
6,733
Recommended threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top