X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/27bc06f395acc3a29bf7522ee16a127c19d6b0d4..c187ac6e57f58c4b3fb5e400e9ca3a61b5ec37f9:/page.php diff --git a/page.php b/page.php index e83a585..8979e62 100644 --- a/page.php +++ b/page.php @@ -136,6 +136,12 @@ while (TRUE) { $staticpage = NULL; if (file_exists("$Page$Args.html")) { $staticpage = "$Page$Args.html"; + if (is_link($staticpage)) { + $target = preg_replace('/\.html$/', '', readlink($staticpage)); + header("HTTP/1.1 302 Shorthand"); + header("Location: $target"); + exit; + } } elseif (file_exists("$Page$Args/index.html")) { $staticpage = "$Page$Args/index.html";