diff options
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,8 +3,8 @@ include('./includes/head.php'); $page = strtok($_SERVER['REQUEST_URI'], '/'); -if (!empty($page) && $page == "posts" && ($post = strtok('/')) && !empty($post)) { - include("./posts/$post.php"); +if (!empty($page) && $page[0] >= '0' && $page[0] <= '9') { + include("./posts/$page.php"); } else if (!empty($page)) { include("./pages/$page.php"); } else { |