added humans and robots
This commit is contained in:
18
skeleton/novaconium/App/controllers/robots.php
Normal file
18
skeleton/novaconium/App/controllers/robots.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
// Send proper headers
|
||||
header('Content-Type: text/plain; charset=UTF-8');
|
||||
header('Cache-Control: public, max-age=604800');
|
||||
|
||||
// Use $config['base_url'] as-is
|
||||
$baseUrl = $config['base_url'];
|
||||
|
||||
echo <<<TXT
|
||||
# robots.txt for sites powered by Novaconium framework
|
||||
|
||||
User-agent: *
|
||||
Disallow: /novaconium/
|
||||
|
||||
Sitemap: {$baseUrl}/sitemap.xml
|
||||
TXT;
|
||||
Reference in New Issue
Block a user