ROBOTS: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 104: Line 104:
[[mw:Main Page|Wikimedia MediaWiki]] automatically applies different META ROBOTS instructions in the HEAD element to different pages, so you should not add any custom ROBOTS instructions via [[mw:HeadScript|HeadScript]].
[[mw:Main Page|Wikimedia MediaWiki]] automatically applies different META ROBOTS instructions in the HEAD element to different pages, so you should not add any custom ROBOTS instructions via [[mw:HeadScript|HeadScript]].


To get webcrawlers to follow links on MediaWiki, add the following to "<code>LocalSettings.php</code>":
To get webcrawlers to follow links on MediaWiki, add the following to "<code>[[mw:$wgNoFollowLinks|LocalSettings.php]]</code>". <ref><code>[[mw:$wgNoFollowLinks]]</code></ref>
: <code>[[mw:$wgNoFollowLinks|$wgNoFollowLinks]] = false;</code>
 
<code><syntaxhighlight lang="php">
$wgNoFollowLinks = false;
# https://www.mediawiki.org/wiki/$wgNoFollowLinks
</syntaxhighlight></code>


== see also ==
== see also ==