File: D:/HostingSpaces/SBogers10/pvg.komma-mediadesign.nl/wwwroot/index.php
<?php
/**
* index.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 7/11/13
*/
// Always header to www.*
if(substr($_SERVER['HTTP_HOST'],0,3) != 'www')
{
header ('HTTP/1.1 301 Moved Permanently');
$location = 'http://www.' . $_SERVER['HTTP_HOST'];
if( ! empty($_SERVER['REQUEST_URI'])) $location .= $_SERVER['REQUEST_URI'];
header('location: ' . $location);
exit;
}
// Include necessary
require_once 'config/error_report.php';
require_once 'config/paths.php';
require_once 'config/friendly_url.php';
require_once 'app/bootstrap.class.php';
// Launch application
new Bootstrap();