<?php
/**
 * WordPress View Bootstrapper
 */
define('WP_USE_THEMES', true);
if ($_SERVER['SERVER_NAME'] == "dev.tiwariacademy.com") {
    $url = "https://www.tiwariacademy.com" . $_SERVER['REQUEST_URI'];
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: {$url}");
    exit;
}
if (strstr($_SERVER['REQUEST_URI'],"/amp")) {
    $url = "https://www.". $_SERVER['SERVER_NAME'] . str_replace("/amp","",$_SERVER['REQUEST_URI']);
    header( "HTTP/1.1 301 Moved Permanently" );
    header("Location: {$url}");
    exit;
}
if (strstr($_SERVER['REQUEST_URI'],"/discussion")) {
    $url = "https://discussion.". $_SERVER['SERVER_NAME'] . str_replace("/discussion","",$_SERVER['REQUEST_URI']);
    header( "HTTP/1.1 301 Moved Permanently" );
    header("Location: {$url}");
    exit;
}



require __DIR__ . '/wp/wp-blog-header.php';
