diff --git a/.htaccess b/.htaccess index 6b50941..7b0da46 100644 --- a/.htaccess +++ b/.htaccess @@ -13,6 +13,10 @@ ErrorDocument 404 /assets/error-404.html ErrorDocument 500 /assets/error-500.html + + RedirectMatch 403 /silverstripe-cache(/|$) + + RewriteEngine On RewriteCond %{REQUEST_URI} ^(.*)$ diff --git a/install.php b/install.php index 72e90d9..79bcffb 100644 --- a/install.php +++ b/install.php @@ -1103,6 +1103,10 @@ HTML; ErrorDocument 404 /assets/error-404.html ErrorDocument 500 /assets/error-500.html + + RedirectMatch 403 /silverstripe-cache(/|$) + + RewriteEngine On $baseClause @@ -1137,6 +1141,13 @@ TEXT; + + + + + + +