first version
This commit is contained in:
12
kirby/router.php
Executable file
12
kirby/router.php
Executable file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
$root = dirname(__DIR__);
|
||||
|
||||
// https://yourdomain.com/media/super/nice.jpg
|
||||
if (file_exists($root . '/' . $_SERVER['SCRIPT_NAME'])) {
|
||||
return false; // serve the requested resource as-is.
|
||||
}
|
||||
|
||||
$_SERVER['SCRIPT_NAME'] = str_replace($_SERVER['DOCUMENT_ROOT'], '', $index = $root . '/index.php');
|
||||
|
||||
include $index;
|
Reference in New Issue
Block a user