Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ENHANCEMENT ErrorDocument in default .htaccess so Apache serves defau…

…lt 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
  • Loading branch information...
commit 991ec354b15dedec91cac32d1d29b2abe6c3a0b9 1 parent 55d6682
sminnee authored
Showing with 6 additions and 0 deletions.
  1. +3 −0  .htaccess
  2. +3 −0  install.php
View
3  .htaccess
@@ -10,6 +10,9 @@
Deny from all
</Files>
+ErrorDocument 404 /assets/error-404.html
+ErrorDocument 500 /assets/error-500.html
+
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)$
View
3  install.php
@@ -1119,6 +1119,9 @@ function createHtaccess() {
Deny from all
</Files>
+ErrorDocument 404 /assets/error-404.html
+ErrorDocument 500 /assets/error-500.html
+
<IfModule mod_rewrite.c>
RewriteEngine On
$baseClause
Please sign in to comment.
Something went wrong with that request. Please try again.