<?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;