<?php
header("Content-Type: application/xml; charset=utf-8");

// Lista de palabras clave de alta demanda que quieres que Google indexe y traiga tráfico
array_keywords = [
    "como-conseguir-vistas-en-youtube",
    "crear-miniaturas-para-youtube-gratis",
    "calculadora-de-dinero-youtube",
    "hashtags-virales-para-shorts",
    "cuanto-paga-youtube-por-1000-vistas",
    "editor-de-portadas-youtube-online",
    "como-aumentar-el-ctr-en-youtube"
];

echo '<?xml version="1.0" encoding="UTF-8"?>';
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';

// URL Principal
echo '<url><loc>https://dandorelleno.com/</loc><changefreq>daily</changefreq><priority>1.0</priority></url>';

// URLs Programáticas para SEO
foreach(array_keywords as $kw) {
    echo '<url>';
    echo '<loc>https://dandorelleno.com/seo/' . $kw . '</loc>';
    echo '<lastmod>' . date('Y-m-d') . '</lastmod>';
    echo '<changefreq>weekly</changefreq>';
    echo '<priority>0.8</priority>';
    echo '</url>';
}

echo '</urlset>';
?>