xref: /webtrees/resources/views/robots-txt.phtml (revision ffa287a19fafea25bbc582320a3dfed9051b21ab)
1<?php
2
3/**
4 * @var string $base_path
5 * @var string $base_url
6 * @var string $sitemap_url
7 */
8
9?>
10# robots.txt for <?= $base_url ?>
11
12<?php if ($base_path !== '') : ?>
13# CAUTION!  This robots.txt needs to be copied to the root folder.
14<?php endif ?>
15
16<?php foreach ($bad_user_agents as $bad_user_agent): ?>
17User-agent: <?= $bad_user_agent ?>
18
19<?php endforeach ?>
20Disallow: /
21
22User-agent: *
23Disallow: <?= $base_path ?>/admin
24Disallow: <?= $base_path ?>/manager
25Disallow: <?= $base_path ?>/editor
26Disallow: <?= $base_path ?>/account
27Crawl-delay: 10
28
29<?php if ($sitemap_url !== '') : ?>
30Sitemap: <?= $sitemap_url ?>
31<?php endif ?>
32