mirror of
https://github.com/phanan/htaccess.git
synced 2018-11-08 13:39:40 +01:00
different ways to define custom error messages
This commit is contained in:
parent
2e25cf45be
commit
daf7b2fb39
1 changed files with 3 additions and 5 deletions
|
@ -309,11 +309,9 @@ php_value max_execution_time 240
|
||||||
|
|
||||||
### Custom Error Pages
|
### Custom Error Pages
|
||||||
``` apacheconf
|
``` apacheconf
|
||||||
ErrorDocument 400 /errors/breakingbad.html
|
ErrorDocument 500 "Houston, we have a problem."
|
||||||
ErrorDocument 401 /errors/notrespassing.html
|
ErrorDocument 401 http://error.yourdomain.com/mordor.html
|
||||||
ErrorDocument 403 /errors/mordor.html
|
|
||||||
ErrorDocument 404 /errors/halflife3.html
|
ErrorDocument 404 /errors/halflife3.html
|
||||||
ErrorDocument 500 /errors/notabugitsafeature.html
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Force Downloading
|
### Force Downloading
|
||||||
|
@ -354,4 +352,4 @@ AddHandler application/x-httpd-php55 .php
|
||||||
|
|
||||||
# Alternatively, you can use AddType
|
# Alternatively, you can use AddType
|
||||||
AddType application/x-httpd-php55 .php
|
AddType application/x-httpd-php55 .php
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue