Skip to content

Commit 981901e

Browse files
authored
Merge pull request #83 from NixOS/joerg-ci
add robots.txt
2 parents 4f40ed4 + caf2e72 commit 981901e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

modules/nixos-wiki/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ in
161161
forceSSL = lib.mkDefault true;
162162
locations."=/nixos.png".alias = ./nixos.png;
163163
locations."=/favicon.ico".alias = ./favicon.ico;
164+
locations."=/robots.txt".alias = ./robots.txt;
164165
};
165166
};
166167
}

modules/nixos-wiki/robots.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
User-agent: *
2+
Disallow: /index.php?diff=
3+
Disallow: /index.php?oldid=
4+
Disallow: /index.php?title=Help
5+
Disallow: /index.php?title=Image
6+
Disallow: /index.php?title=MediaWiki
7+
Disallow: /index.php?title=Special:
8+
Disallow: /index.php?title=Template
9+
Disallow: /wiki/Special:
10+
Disallow: /api.php
11+
Disallow: /index.php?returnto=
12+
Disallow: /index.php?*userExpLevel=
13+
14+
# Allows robots to find all the pages containing content
15+
Allow: /wiki/Special:AllPages
16+
17+
# Allow the Internet Archiver to index action=raw and thereby store the raw wikitext of pages
18+
User-agent: ia_archiver
19+
Allow: /*&action=raw
20+
Allow: /*&action=edit

0 commit comments

Comments
 (0)