Difference between revisions of "Custom error pages"
From OdleWiki
(Created page with "# Sets custom error pages ErrorDocument 400 /errors/400.php ErrorDocument 401 /errors/401.php ErrorDocument 403 /errors/403.php ErrorDocument 404 /errors/404.php category:A...") |
m |
||
Line 1: | Line 1: | ||
+ | Sets custom error pages in a directory called 'errors'. | ||
+ | |||
+ | <code> | ||
# Sets custom error pages | # Sets custom error pages | ||
ErrorDocument 400 /errors/400.php | ErrorDocument 400 /errors/400.php | ||
Line 4: | Line 7: | ||
ErrorDocument 403 /errors/403.php | ErrorDocument 403 /errors/403.php | ||
ErrorDocument 404 /errors/404.php | ErrorDocument 404 /errors/404.php | ||
+ | </code> | ||
+ | |||
[[category:Apache]] | [[category:Apache]] | ||
[[category:htaccess]] | [[category:htaccess]] | ||
[[category:Articles_needing_attention]] | [[category:Articles_needing_attention]] |
Revision as of 17:47, 10 September 2016
Sets custom error pages in a directory called 'errors'.
- Sets custom error pages
ErrorDocument 400 /errors/400.php
ErrorDocument 401 /errors/401.php
ErrorDocument 403 /errors/403.php
ErrorDocument 404 /errors/404.php