This commit is contained in:
JorisDebonnet 2018-05-04 02:01:12 +00:00 committed by GitHub
commit 5c466ac81f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -45,9 +45,10 @@ ErrorDocument 500 /assets/error-500.html
# Deny access to potentially sensitive files and folders
RewriteRule ^vendor(/|$) - [F,L,NC]
RewriteRule silverstripe-cache(/|$) - [F,L,NC]
RewriteRule composer\.(json|lock) - [F,L,NC]
RewriteRule ^silverstripe-cache(/|$) - [F,L,NC]
RewriteRule ^composer\.(json|lock)$ - [F,L,NC]
RewriteRule ^\. - [F,L,NC]
# Process through SilverStripe if no file with the requested name exists.
# Pass through the original path as a query parameter, and retain the existing parameters.
RewriteCond %{REQUEST_URI} ^(.*)$