<?php header('Content-Type: application/xml; charset=utf-8'); $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http'; $host = $_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME']; $base = $scheme . '://' . $host; echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc><?php echo htmlspecialchars($base . '/', ENT_XML1); ?></loc><changefreq>daily</changefreq><priority>1.0</priority></url>
  <url><loc><?php echo htmlspecialchars($base . '/videos/', ENT_XML1); ?></loc><changefreq>weekly</changefreq><priority>0.9</priority></url>
  <url><loc><?php echo htmlspecialchars($base . '/stories/', ENT_XML1); ?></loc><changefreq>weekly</changefreq><priority>0.8</priority></url>
  <url><loc><?php echo htmlspecialchars($base . '/about/', ENT_XML1); ?></loc><changefreq>monthly</changefreq><priority>0.7</priority></url>
  <url><loc><?php echo htmlspecialchars($base . '/contact/', ENT_XML1); ?></loc><changefreq>monthly</changefreq><priority>0.6</priority></url>
</urlset>
