feat: refactor into php for mrbs page

This commit is contained in:
2025-11-20 10:59:57 +01:00
parent f76a8d2efc
commit 9ab4fcbe81
10 changed files with 1904 additions and 0 deletions

25
php/.htaccess Normal file
View File

@@ -0,0 +1,25 @@
# Prevent directory browsing
Options -Indexes
# Enable rewrite engine (optional, for clean URLs)
RewriteEngine On
# Redirect /semesterapparat to semesterapparat.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^semesterapparat$ semesterapparat.php [L]
# Redirect /elsa to elsa.php
RewriteRule ^elsa$ elsa.php [L]
# Protect config files
<FilesMatch "^(config|functions)\.php$">
Order allow,deny
Deny from all
</FilesMatch>
# Set default charset
AddDefaultCharset UTF-8
# Error pages (customize as needed)
ErrorDocument 404 /index.php