404 403 error pages cant setup

Status
Not open for further replies.

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Add these liness to .htaccess file
ErrorDocument 404 /404.shtml
ErrorDocument 403 /403.shtml

Where 404.shtml and 403.shtml must be there in public_html folder
 
Last edited:

dlukin

New Member
Messages
427
Reaction score
25
Points
0
Actually, the files can be any extension and located anywhere your ErrorDocument points. .shtml files are parsed everytime they are requested with is a performance hit if you are not using SSI.
 
Status
Not open for further replies.
Top