From 619afe666c0311f7ff3282ca6840cd8583db0859 Mon Sep 17 00:00:00 2001 From: Victor Date: Thu, 10 Jun 2021 08:46:58 +0200 Subject: [PATCH] v0.2.0a Made some small changes to some files, and moved index to the root of our project --- .htaccess | 5 ++++- Backend/controller/logout.php | 2 +- Frontend/admin.php | 1 + Frontend/index.php => index.php | 20 ++++++++++---------- 4 files changed, 16 insertions(+), 12 deletions(-) rename Frontend/index.php => index.php (85%) diff --git a/.htaccess b/.htaccess index 21f842e..e5d8dd6 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,6 @@ +RewriteEngine ON ErrorDocument 404 https://localhost/itdskp-odense/Frontend/404.php ErrorDocument 403 https://localhost/itdskp-odense/Frontend/403.php -ErrorDocument 500 https://localhost/itdskp-odense/Frontend/500.php \ No newline at end of file +ErrorDocument 500 https://localhost/itdskp-odense/Frontend/500.php + +RedirectMatch 301 ^/Frontend/index /Frontend/index.php \ No newline at end of file diff --git a/Backend/controller/logout.php b/Backend/controller/logout.php index c1df32f..e1adb80 100644 --- a/Backend/controller/logout.php +++ b/Backend/controller/logout.php @@ -2,4 +2,4 @@ session_start(); session_unset(); session_destroy(); -header("location: ../../Frontend/index.php"); +header("location: ../../index.php"); diff --git a/Frontend/admin.php b/Frontend/admin.php index 3aa1dfb..b3dad1a 100644 --- a/Frontend/admin.php +++ b/Frontend/admin.php @@ -97,6 +97,7 @@ use Backend\Model\Post; +
diff --git a/Frontend/index.php b/index.php similarity index 85% rename from Frontend/index.php rename to index.php index 1fb6398..480b8d8 100644 --- a/Frontend/index.php +++ b/index.php @@ -4,15 +4,15 @@ ITSKP - - - + + + - - - - - + + + + +