Answer :
Custom error pages allow you to replace default server error messages with your own branded design. This improves user experience and keeps visitors on your site even when something goes wrong.
GHFS Hosting and Plesk make it easy to create and manage custom error documents.
1. What Error Pages Can Be Customized?
Common customizable error codes include:
-
404 – Page Not Found
-
403 – Forbidden
-
500 – Internal Server Error
-
401 – Unauthorized
-
502 / 503 / 504 – Gateway errors (depending on server setup)
You can replace these pages with custom HTML, PHP, or WordPress templates.
2. Method 1: Create Custom Error Pages in Plesk (Recommended)
Plesk allows you to upload your own error page files.
Steps:
-
Log in to Plesk
-
Go to Websites & Domains
-
Select your domain
-
Click Hosting Settings
-
Ensure Custom Error Documents is enabled
-
Save settings
-
Go to File Manager
-
Open the directory:
/error_docs/
Inside this folder you will find files like:
-
404.html -
403.html -
500.html
You can edit these files directly or upload new ones.
3. Method 2: Create Your Own Custom Error Files
If the folder does not contain a file you want to customize, simply create it.
Example: create a file named:
-
404.html -
403.html -
500.html
Add your custom design and content, such as:
-
A message
-
Navigation links
-
Branding
-
A search bar
Upload the file into the /error_docs/ directory.
4. Method 3: Use .htaccess to Point to Custom Error Pages (Apache)
If your site uses Apache, you can manually define custom error pages.
Add the following lines to your .htaccess file:
This tells the server which file to display for each error.
5. Method 4: WordPress Custom Error Pages
If you run WordPress, you can create custom templates inside your theme.
For a custom 404 page:
Create a file in your theme folder:
WordPress will automatically use this file.
For 403 or 500 errors, you will typically use:
-
A security plugin that supports custom errors
-
Redirection rules
-
Custom maintenance pages
6. Method 5: nginx Custom Error Pages (Advanced)
If your domain uses nginx, add directives in Plesk:
-
Go to Apache & nginx Settings
-
Scroll to Additional nginx directives
-
Add:
Upload your custom HTML files into /error_docs/.
7. Tips for Designing Good Error Pages
-
Use simple, friendly text
-
Include a link back to the homepage
-
Add a search bar (especially for 404 pages)
-
Keep branding consistent
-
Offer suggestions for what users can do next
-
Avoid technical explanations
8. When to Contact GHFS Hosting Support
Contact support if:
-
Custom error pages do not display
-
You need help editing server rules
-
Your hosting plan restricts custom error documents
-
nginx or Apache directives cause errors
-
You use WordPress and errors persist due to plugin conflicts
Support can configure error handling on your behalf.