What is an error page?
An error page appears when something goes wrong. The most famous is 404 Not Found. It shows when a page does not exist. Others are:
| Code | Meaning |
|---|---|
| 400 | The server did not understand the request |
| 401 | A login is needed |
| 403 | The visitor is not allowed in |
| 404 | The page was not found |
| 500 | The server had an internal problem |
A custom error page is friendlier. It can say sorry, and add a link back to your home page.
Step 1: Make the page
- Write a simple HTML page. Say what went wrong in plain words and add a link to your home page.
- Save it as a file such as
my404.html. - Upload it to your site folder with File Manager. Put it inside
httpdocs, or your site's main folder.
Step 2: Turn it on in Plesk
- Log in to Plesk.
- Click Websites & Domains.
- Find your domain and click Error Documents.
- Click the error code you want, such as 404 Not Found.
- Choose Custom or File, depending on the choices shown.
- Type the file name you uploaded, for example
my404.html. - Click OK.
On some servers, you must first turn on the option Support of custom error documents in Hosting Settings. If the Error Documents page does not show your site, check that setting.
Test it
- Open a browser.
- Type an address that does not exist, like
yourdomain.com/nopage123. - Your page should appear.
If you still see the old page, clear the browser cache and try again. Some browsers show their own message for tiny error pages. Make your page larger than about 512 bytes.
Tip: Add a search box or links to your main pages on the 404 page. It helps visitors find what they want.
Need help? Open a support ticket.
Quick recap
- An error page shows when something goes wrong, like a missing page.
- Upload your own HTML file.
- Connect it under Error Documents in Plesk.
- Test with an address that does not exist.