<?php header('Content-Type: application/xml; charset=utf-8'); $host = preg_replace('/[^A-Za-z0-9\-\.:]/','', $_SERVER['HTTP_HOST'] ?? ''); $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https://' : 'http://'; $base = $scheme.$host; $today = date('Y-m-d'); $urls=['/','/brand-idea/','/brand-goods/','/brand-companion/','/brand-notes/','/brand-meet/','/morning-list/','/season-proposal/','/space-diary/','/ingredient-notes/','/slow-life-guide/','/user-manual/','/healing-inspiration/']; echo '<?xml version="1.0" encoding="UTF-8"?>'."\n"; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?php foreach($urls as $u): ?>
  <url><loc><?php echo htmlspecialchars($base.$u, ENT_QUOTES, 'UTF-8'); ?></loc><lastmod><?php echo $today; ?></lastmod><changefreq>daily</changefreq><priority><?php echo $u==='/'?'1.0':'0.8'; ?></priority></url>
<?php endforeach; ?>
</urlset>
