/**
 * Redirect all frontend requests to the React index.html
 * This bypasses Nginx/Apache 404s on Managed Hosting
 */
add_action('template_redirect', function() {
    // 1. Allow access to wp-admin and login pages
    if (is_admin() || $GLOBALS['pagenow'] === 'wp-login.php') {
        return;
    }

    // 2. Locate your React index.html (assumes it is in the root)
    $react_index = ABSPATH . 'index.html';

    // 3. If the file exists, serve it and stop WordPress execution
    if (file_exists($react_index)) {
        readfile($react_index);
        exit;
    }
});<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://jaggaallurimd.com/wp-sitemap.xsl" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://jaggaallurimd.com/</loc></url></urlset>
