diff --git a/.htaccess b/.htaccess index 132464b..5de56ed 100644 --- a/.htaccess +++ b/.htaccess @@ -20,15 +20,13 @@ ErrorDocument 404 /assets/error-404.html ErrorDocument 500 /assets/error-500.html - - RedirectMatch 403 /silverstripe-cache(/|$) - RedirectMatch 403 /vendor(/|$) - RedirectMatch 403 /composer\.(json|lock) - - SetEnv HTTP_MOD_REWRITE On - RewriteEngine On + RewriteEngine On + + RewriteRule ^vendor(/|$) - [F,L,NC] + RewriteRule silverstripe-cache(/|$) - [F,L,NC] + RewriteRule composer\.(json|lock) - [F,L,NC] RewriteCond %{REQUEST_URI} ^(.*)$ RewriteCond %{REQUEST_FILENAME} !-f