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