From f5245c7b0fd5bd78f325fdd2b3299e39e82fcbd9 Mon Sep 17 00:00:00 2001 From: sharvey Date: Wed, 28 Jul 2010 23:54:20 +0000 Subject: [PATCH] ENHANCEMENT ErrorDocument in default .htaccess so Apache serves default 404 and 500 server error pages git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@108663 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- .htaccess | 3 +++ install.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.htaccess b/.htaccess index 177f473..6b50941 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 7329236..e7c9792 100644 --- a/install.php +++ b/install.php @@ -1100,6 +1100,9 @@ HTML; Deny from all +ErrorDocument 404 /assets/error-404.html +ErrorDocument 500 /assets/error-500.html + RewriteEngine On $baseClause