summaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorVladimir Panteleev <git@thecybershadow.net>2018-03-14 23:01:06 +0100
committerVladimir Panteleev <git@thecybershadow.net>2018-03-16 01:28:49 +0100
commit5ebb025589fb05b5aece4255bc61ed85a4715a60 (patch)
tree123ac87f62241b7177a1a41e228e1184f8b72586 /.htaccess
parentc480ce865ba8f9671548b431afa19fd720422387 (diff)
downloadbugzilla-5ebb025589fb05b5aece4255bc61ed85a4715a60.tar.gz
bugzilla-5ebb025589fb05b5aece4255bc61ed85a4715a60.tar.xz
.htaccess: Add ErrorDocument directives
Normally, this is done by Bugzilla::ModPerl. Do the same for other configurations.
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess5
1 files changed, 5 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index e0a9a7dcc..2a1ebb41c 100644
--- a/.htaccess
+++ b/.htaccess
@@ -86,3 +86,8 @@ RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE]
RewriteRule ^(?:latest|1\.2|1\.3)/(.*)$ extensions/BzAPI/bin/rest.cgi/$1 [NE]
RewriteRule ^bzapi/(.*)$ extensions/BzAPI/bin/rest.cgi/$1 [NE]
RewriteRule ^login$ index.cgi?GoAheadAndLogIn=1 [NE]
+
+ErrorDocument 401 /errors/401.html
+ErrorDocument 403 /errors/403.html
+ErrorDocument 404 /errors/404.html
+ErrorDocument 500 /errors/500.html