<?php
header('Content-Type: text/html; charset=utf-8');

// Application Path
$appPath = $_SERVER['DOCUMENT_ROOT'];

if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
    $appPath = realpath(dirname(__FILE__));
    $appPath = substr($appPath, 0, -7); //delete /public from path
}

if (strstr($_SERVER['REQUEST_URI'], '/public/')){
    header( "HTTP/1.1 301 Moved Permanently" );
    header("Location: /");
    exit;
}

require '../application/bootstrap.php';