

/**
 * Force Redirect www to non-www in WordPress bootstrap
 * Solves Elementor Editor CORS / Cross-Origin frame loading issue
 */
add_action('init', function() {
    if (isset($_SERVER['HTTP_HOST']) && strpos($_SERVER['HTTP_HOST'], 'www.') === 0) {
        $non_www = substr($_SERVER['HTTP_HOST'], 4);
        wp_redirect('https://' . $non_www . $_SERVER['REQUEST_URI'], 301);
        exit;
    }
}, 1);
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://flr.sg/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://flr.sg/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://flr.sg/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://flr.sg/wp-sitemap-posts-e-floating-buttons-1.xml</loc></sitemap><sitemap><loc>https://flr.sg/wp-sitemap-posts-project-1.xml</loc></sitemap><sitemap><loc>https://flr.sg/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://flr.sg/wp-sitemap-taxonomies-project_category-1.xml</loc></sitemap><sitemap><loc>https://flr.sg/wp-sitemap-taxonomies-project_type-1.xml</loc></sitemap><sitemap><loc>https://flr.sg/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
