rpg-westreiche/westreiche_website/.htaccess

23 lines
639 B
ApacheConf
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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>
<FilesMatch "^(credentials|composer)\.(txt|json)$|\.sql$|\.md$|\.log$">
Require all denied
</FilesMatch>
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set X-Robots-Tag "noindex, nofollow, noarchive"
</IfModule>