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/promic.komma.pro/wwwroot/index.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/app/config/init.php';

// Redirect all non-komma users to the promic.nl domain
$location = 'https://www.promic.nl/nl';
if( kommaIp() ) $location = '/nl';

// Header to location
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $location);
exit;