If you want to create custom error pages for 403, 404 and 500 errors, for each error you have to upload one .html file in the main WordPress folder. For example, for error 403 you have to create a 403-error.html page. For error 404 you have to create a 404-error.html page. For error 500 you have to create a 500-error.html page. After the html pages are created and uploaded to the main WordPress folder, add the following code snippet to your .htaccess file to enable the custom error pages.
# Custom error page for error 403, 404 and 500 ErrorDocument 404 /404-error.html ErrorDocument 403 /403-error.html ErrorDocument 500 /500-error.html
This post was updated on Wednesday / February 12th, 2020 at 11:34 PM