Google indexes MediaWiki page with url of Random page

From FVue
Jump to: navigation, search


A MediaWiki page shows up in Google with a link to Special:Random. When this link is activated, another (random) page will be presented; not the page Google indexed.

So for example, random pages of are falsely indexed. Search in Google for:


Click on a link '../wiki/Special:Random'. Google will serve you another (random) page, NOT the page as suggested in the search results.


Tell search engines not to index random pages at all. Specify in robots.txt:

User-agent: *
Disallow: /w/*
Disallow: /wiki/Special:Search
Disallow: /wiki/Special%3ASearch
Disallow: /wiki/Special:Random
Disallow: /wiki/Special%3ARandom

NOTE: Special:Randompage also works in MediaWiki, but since Special:Random is a prefix of Special:Randompage, specifying Special:Random in robots.txt suffices.

See also

3-letter words not indexed in MediaWiki: Fix MySQL to index 3-letter words of MediaWiki.

MediaWiki backup via SSH tunnel: Solution for creating a back-up of your MediaWiki if your Internet Service Provicer doesn't allow you to mysqldump

Category: MediaWiki: More MediaWiki solutions.



Installing Mediawiki - Devpit: Useful page about modifying a MediaWiki installation. Contains an example robots.txt. The current robots.txt file used by Wikipedia.


This problem seems to occur in the official as well, since they have in robots.txt:

Disallow: /wiki/Special:Randompage
Disallow: /wiki/Special%3ARandompage
Disallow: /wiki/Speciaal:Randompage
Disallow: /wiki/Speciaal%3ARandompage

Mailed problem/solution to Not placed :-(?

Mailed problem/solution to Not placed :-(?


Mailed problem/solution to Not placed :-(?


Posted problem/solution to


Mailed problem/solution to Placed :-)


Reported bug to


blog comments powered by Disqus