From 35f152632e6cb0966f42eea5afc31c9f4dbbed7a Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Wed, 1 Apr 2026 16:15:04 +0200 Subject: [PATCH] Added auth test --- public/.htaccess | 7 +++++++ public/auth.php | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 public/auth.php diff --git a/public/.htaccess b/public/.htaccess index 7cc47fe..48445ea 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,3 +1,10 @@ ErrorDocument 403 /403.html ErrorDocument 404 /404.html ErrorDocument 500 /500.html + +RewriteEngine On + +# Prüfen, ob die aufgerufene URL mit /index-test beginnt +RewriteCond %{REQUEST_URI} ^/index-test(/.*)?$ +# Umleitung auf das PHP-Skript, Übergabe des originalen Pfads als Parameter +RewriteRule ^(.*)$ /auth.php?route=$1 [QSA,L] \ No newline at end of file diff --git a/public/auth.php b/public/auth.php new file mode 100644 index 0000000..bd8c766 --- /dev/null +++ b/public/auth.php @@ -0,0 +1,43 @@ +