From 991ec354b15dedec91cac32d1d29b2abe6c3a0b9 Mon Sep 17 00:00:00 2001 From: sminnee Date: Fri, 15 Oct 2010 01:18:46 +0000 Subject: [PATCH] ENHANCEMENT ErrorDocument in default .htaccess so Apache serves default 404 and 500 server error pages (from r108663) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112415 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- .htaccess | 3 +++ install.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.htaccess b/.htaccess index 5cbd1e8..3b89f24 100644 --- a/.htaccess +++ b/.htaccess @@ -10,6 +10,9 @@ Deny from all +ErrorDocument 404 /assets/error-404.html +ErrorDocument 500 /assets/error-500.html + RewriteEngine On RewriteCond %{REQUEST_URI} ^(.*)$ diff --git a/install.php b/install.php index 654aca0..f92650d 100644 --- a/install.php +++ b/install.php @@ -1119,6 +1119,9 @@ HTML; Deny from all +ErrorDocument 404 /assets/error-404.html +ErrorDocument 500 /assets/error-500.html + RewriteEngine On $baseClause