10 lines
424 B
ApacheConf
10 lines
424 B
ApacheConf
|
|
# Fallback, falls der Hosting-Docroot auf das Repo-Root zeigt statt auf public/.
|
||
|
|
# Nicht-öffentliche Verzeichnisse und Dateien hart sperren, alles andere nach public/ rewriten.
|
||
|
|
RewriteEngine On
|
||
|
|
|
||
|
|
RewriteRule ^(app|bin|config|data|storage|vendor)(/|$) - [F]
|
||
|
|
RewriteRule ^(\.git|\.gitignore|composer\.(json|lock)|CLAUDE\.md|\.context|\.context_db) - [F]
|
||
|
|
|
||
|
|
RewriteCond %{REQUEST_URI} !^/public/
|
||
|
|
RewriteRule ^(.*)$ public/$1 [L]
|