Error pages

Status
Not open for further replies.

leetzero

Member
Messages
31
Reaction score
0
Points
6
Hello, all error pages end up on external link, x10hosting, after the redirect users can't use the backspace (/back) feature anymore to return to the previous page, either.

May I use custom error pages? Apparently creating 404.shtml does nothing.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Way I do it.

1. Create subdirectory errors in public_html
2. Create my error pages, 404.html (or 404.php ), 500.html, etc and put them in public_html/errors
3. Open the .htaccess file in public_html
4. Add lines like

ErrorDocument 403 /errors/403.html
ErrorDocument 500 /errors/500.html
ErrorDocument 404 /errors/404.html

for each error document.

Note: The directory name 'errors' is a personal choice. Nothing magical about the name. Same with the file names. Just easier to keep track.
 
Status
Not open for further replies.
Top