Initial commit
This commit is contained in:
commit
1ff19bf38f
830 changed files with 159212 additions and 0 deletions
12
kirby/router.php
Normal file
12
kirby/router.php
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue