// 1. Unique Single Filter for Base URL
add_filter( 'rank_math/sitemap/base_url', function( $base ){
    return 'https://skyexchangeco.com/';
}, 10, 1 );

// 2. Unique Filter for XML Inner Links Transformation
add_filter( 'rank_math/sitemap/xml_url', function( $url, $type, $object ){
    if ( isset($url['loc']) ) {
        $url['loc'] = str_replace( 'https://blog-admin.skyexchangeco.com/sitemap_index.xml', 'https://skyexchangeco.com/sitemap.xml', $url['loc'] );
        $url['loc'] = str_replace( 'https://skyexchangeco.com/post-sitemap.xml', 'https://skyexchangeco.com/post-sitemap.xml', $url['loc'] );
        $url['loc'] = str_replace( 'https://skyexchangeco.com/category-sitemap.xml', 'https://skyexchangeco.com/category-sitemap.xml', $url['loc'] );
        $url['loc'] = str_replace( 'https://blog-admin.skyexchangeco.com/', 'https://skyexchangeco.com/sky-exchange-all-blogs/', $url['loc'] );
    }
    return $url;
}, 10, 3 );

// 3. Unique Filter for Image Path Corrections
add_filter( 'rank_math/sitemap/xml_img_src', function( $src, $post ){
    return str_replace( 'https://blog-admin.skyexchangeco.com/', 'https://skyexchangeco.com/', $src );
}, 10, 2 );<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//blog-admin.skyexchangeco.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://skyexchangeco.com/post-sitemap.xml</loc>
		<lastmod>2026-07-02T12:59:16+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://skyexchangeco.com/category-sitemap.xml</loc>
		<lastmod>2026-07-02T12:59:16+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->