hubl/router.php
2018-09-21 13:29:45 +02:00

11 lines
245 B
PHP

<?php
if (PHP_SAPI == 'cli-server') {
$url = parse_url($_SERVER['REQUEST_URI']);
$path = $url['path'];
if(strpos($path, '.') !== false) return false;
$file = __DIR__ . $path;
if (is_file($file)) return false;
}
include "index.html";