<?php
header('Content-Type: application/xml; charset=utf-8');
$base = 'https://securelifefinance.com';
$today = date('Y-m-d');

$urls = [
    // [loc, lastmod, changefreq, priority]
    ['/', $today, 'daily', '1.0'],
    ['/about.php', $today, 'monthly', '0.8'],
    ['/services.php', $today, 'weekly', '0.9'],
    ['/services/home-loan.php', $today, 'weekly', '0.9'],
    ['/services/personal-loan.php', $today, 'weekly', '0.9'],
    ['/services/business-loan.php', $today, 'weekly', '0.9'],
    ['/services/mortgage-loan.php', $today, 'weekly', '0.9'],
    ['/services/od-facility.php', $today, 'weekly', '0.8'],
    ['/services/insurance.php', $today, 'weekly', '0.8'],
    ['/services/credit-card.php', $today, 'weekly', '0.8'],
    ['/apply.php', $today, 'weekly', '0.9'],

    ['/contact.php', $today, 'monthly', '0.7'],
    ['/privacy-policy.php', $today, 'yearly', '0.3'],
    ['/terms-conditions.php', $today, 'yearly', '0.3'],
    ['/refund-policy.php', $today, 'yearly', '0.3'],
    ['/disclaimer.php', $today, 'yearly', '0.3'],
    ['/cookie-policy.php', $today, 'yearly', '0.3'],
];
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><?= $base . $u[0] ?></loc>
    <lastmod><?= $u[1] ?></lastmod>
    <changefreq><?= $u[2] ?></changefreq>
    <priority><?= $u[3] ?></priority>
  </url>
<?php endforeach; ?>
</urlset>
