From 435f87116223fa96dcaac42c6230ef050b09620a Mon Sep 17 00:00:00 2001 From: danpros Date: Thu, 5 Sep 2024 10:22:32 +0700 Subject: [PATCH] Update htmly.php --- system/htmly.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/htmly.php b/system/htmly.php index 9abe18d..b75d782 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -3968,7 +3968,10 @@ get('/:static', function ($static) { die; } elseif ($static === blog_path()) { - if(config('blog.enable') !== 'true') return not_found(); + if(config('blog.enable') !== 'true') { + $url = site_url(); + header("Location: $url"); + } if (!login()) { file_cache($_SERVER['REQUEST_URI']);