Created
January 19, 2012 00:26
-
-
Save jackreichert/1636729 to your computer and use it in GitHub Desktop.
Adds global NOINDEX,NOFOLLOW meta to site headers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Adds global NOINDEX,NOFOLLOW meta to site headers | |
$wgExtensionFunctions[] = 'globalNoIndex'; | |
function globalNoIndex(){ | |
global $wgOut; | |
$wgOut->addMeta ( 'ROBOTS' , 'NOINDEX,NOFOLLOW') ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment