xref: /webtrees/resources/views/robots-txt.phtml (revision dc270d8cc5085ed29f3f419c99734ddd0960c624)
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
16User-agent: *
17Disallow: <?= $base_path ?>/admin
18Disallow: <?= $base_path ?>/manager
19Disallow: <?= $base_path ?>/editor
20Disallow: <?= $base_path ?>/account
21Crawl-delay: 10
22
23<?php if ($sitemap_url !== '') : ?>
24Sitemap: <?= $sitemap_url ?>
25<?php endif ?>
26