From c226eefb8484880ac7a0e103f0b20e3a8e069e7b Mon Sep 17 00:00:00 2001 From: danpros Date: Thu, 22 Apr 2021 21:03:52 +0700 Subject: [PATCH] Update htmly.php --- system/htmly.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/htmly.php b/system/htmly.php index 4a8f68e..152097a 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -3004,6 +3004,11 @@ get('/:static/:sub', function ($static, $sub) { $url = site_url() . 'search/' . remove_accent($search); header("Location: $url"); } + + if ($static === 'front') { + $redir = site_url(); + header("location: $redir", TRUE, 301); + } $father_post = get_static_post($static); if (!$father_post) {