File: D:/HostingSpaces/SBogers10/lab.komma-mediadesign.nl/wwwroot/kerst/index.php
<?php
/**
* index.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 9/23/13
*/
// Make sure the user is visiting www.example.com instead of example.com
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;
}
// Require Config files
require_once 'config/errorReport.php';
require_once 'config/paths.php';
require_once 'config/friendlyUrl.php';
initFriendlyUrl(1,0);
require_once 'app/main.php';