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 - - - + + + - - - - - + + + + +