2026-11-21 04:02:29 +01:00
|
|
|
|
# Westreiche – Front Controller
|
|
|
|
|
|
Options -Indexes
|
|
|
|
|
|
|
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
|
|
|
|
# Sperrverzeichnisse sind bereits per eigener .htaccess unerreichbar;
|
|
|
|
|
|
# alles, was keine echte Datei ist, geht an index.php.
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
|
|
|
|
RewriteRule ^ - [L]
|
|
|
|
|
|
|
|
|
|
|
|
RewriteRule ^ index.php [L]
|
|
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
2026-11-21 14:31:29 +01:00
|
|
|
|
<FilesMatch "^(credentials|composer)\.(txt|json)$|\.sql$|\.csv$|\.md$|\.log$">
|
2026-11-21 04:02:29 +01:00
|
|
|
|
Require all denied
|
|
|
|
|
|
</FilesMatch>
|
|
|
|
|
|
|
|
|
|
|
|
<IfModule mod_headers.c>
|
|
|
|
|
|
Header set X-Content-Type-Options "nosniff"
|
|
|
|
|
|
Header set X-Robots-Tag "noindex, nofollow, noarchive"
|
|
|
|
|
|
</IfModule>
|