Manual:Short URL/Prevent bots from crawling index.php

Prevent bots from crawling index.php
If you are using short URLs (see note below), you can make sure that search engines only index actual wiki pages, without indexing action views (such as edit or history pages, with URLs in the form ).

Create a file named  in the root of your MediaWiki installation with the following content. User-agent: * Disallow: /index.php

Note: Creating a  file in the root of your MediaWiki with   without creating a Short URL first, will block all pages from being indexed. This is because your mediawiki page will still have a index.php in the title, which the  file will block "disallow".

If you are using long URLs, follow the link below.