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