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/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();