X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/650a63a68456eee4dad31170e2660319a82c905d..ae841e9139f7eb89f8f5fc2242d4b0d7c121418a:/page.php diff --git a/page.php b/page.php index 0707426..8979e62 100644 --- a/page.php +++ b/page.php @@ -137,7 +137,7 @@ $staticpage = NULL; if (file_exists("$Page$Args.html")) { $staticpage = "$Page$Args.html"; if (is_link($staticpage)) { - $target = readlink($staticpage); + $target = preg_replace('/\.html$/', '', readlink($staticpage)); header("HTTP/1.1 302 Shorthand"); header("Location: $target"); exit;