HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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';