<?php
/**
* Dynamic robots.txt — served at the public URL /robots.txt via .htaccess.
* Uses SITE_URL from config/site-config.php, so the Sitemap: line
* auto-updates if the domain ever changes.
*/
require_once __DIR__ . '/config/site-config.php';
header('Content-Type: text/plain; charset=utf-8');
echo "User-agent: *\n";
echo "Allow: /\n";
echo "Disallow: /admin/\n\n";
echo 'Sitemap: ' . rtrim(SITE_URL, '/') . "/sitemap.xml\n";