<?php
header('Content-Type: application/xml; charset=utf-8');
$baseUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]";
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc><?= $baseUrl ?>/</loc>
    <lastmod><?= date('Y-m-d') ?></lastmod>
    <priority>1.0</priority>
  </url>
</urlset>