mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 03:26:20 +05:30
Update htmly.php
This commit is contained in:
parent
9bc10ed218
commit
c226eefb84
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue