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/verrassendveel.komma.pro/wwwroot/router.php
<?php

if (preg_match('/\.(?:png|jpg|jpeg|gif|pdf|xml)$/', $_SERVER["REQUEST_URI"]))
{
    return false; // serve the requested resource as-is.
}
else if(preg_match("/(^|\/)./", $_SERVER["REQUEST_URI"]))
{
    // Do your magic
    $paths = explode('/',$_SERVER["REQUEST_URI"]);

    if(isset($paths[1])) $_GET["page"] = $paths[1];
    if(isset($paths[2])) $_GET["sub"] = $paths[2];

    include("index.php");
}