Update htmly.php

This commit is contained in:
danpros 2021-04-22 21:03:52 +07:00
commit c226eefb84

View file

@ -3005,6 +3005,11 @@ get('/:static/:sub', function ($static, $sub) {
header("Location: $url");
}
if ($static === 'front') {
$redir = site_url();
header("location: $redir", TRUE, 301);
}
$father_post = get_static_post($static);
if (!$father_post) {
not_found();