Remove Robot NoFollow from MediaWiki

From Zedomax Wiki

Jump to: navigation, search

edit Article.php edit SpecialSpecial.php edit SpecialPage..php

edit none,follow instead of noindex,nofollow

If you want to remove all nofollows then type this in your includes directory:

find . -exec grep "nofollow" '{}' \; -print

Then find all the files and change nofollow to follow.

sed script to do this

This will find and modify all PHP files with noindex and nofollow to use index and follow. Run this at the root of your wiki. This makes changes to your PHP files! Make a backup.

cp -R . ../wiki.backup
find . -type f -name "*.php" -exec sed -i -e "s/noindex/index/g" -e "s/nofollow/follow/g" '{}' \;
Personal tools