
if (isset($_SERVER['HTTP_CF_VISITOR']) && strpos($_SERVER['HTTP_CF_VISITOR'], 'https') !== false) {

    $_SERVER['HTTPS'] = 'on';
if (isset($_SERVER['HTTP_CF_VISITOR']) && strpos($_SERVER['HTTP_CF_VISITOR'], 'https') !== false) {
    $_SERVER['HTTPS'] = 'on';
}
}
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://pathguidance.info/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://pathguidance.info/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://pathguidance.info/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://pathguidance.info/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://pathguidance.info/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
