]> scripts.mit.edu Git - www/raw.git/blob - faq/140.mdwn
Import from TextPattern
[www/raw.git] / faq / 140.mdwn
1 [[!meta title="How can I set a custom error page on Scripts?"]]
2 If you want to make Scripts use a customized error page for a 404
3 (File Not Found) error, you need to place the following lines in
4 your **.htaccess** file:
5
6 **  
7 ErrorDocument 404 /\~lockername/404.html  
8 **
9
10 Remember to replace **lockername** with the name of your locker,
11 and **404.html** with the location of the customized error page.
12
13 If you have additional error pages, create an additional line for
14 each error code. Typical error codes include 401 (Unauthorized) and
15 403 (Forbidden).
16
17
18