Browse Source

Update htmly.php

pull/463/head v2.8.1
danpros 4 years ago
parent
commit
c226eefb84
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      system/htmly.php

+ 5
- 0
system/htmly.php View File

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


Loading…
Cancel
Save