Home Web Hosting Managing Error Pages in Voltic Host Web Panel

Managing Error Pages in Voltic Host Web Panel

Last updated on Feb 13, 2025

Custom error pages improve user experience by providing friendly messages instead of generic server errors. This tutorial will guide you through creating and managing error pages (e.g., 404, 500) in Voltic Host Web Panel.


📌 Prerequisites

  • A web hosting account with Voltic Host.

  • Access to Voltic Host Web Panel.

  • A website hosted on your Voltic Host server.


1️⃣ Accessing the Error Page Directory

  1. Log in to Voltic Host Web Panel.

  2. Click on Files in the top menu to open the File Manager.

  3. Navigate to your website’s directory:

    /home/user/web/yourdomain.com/public_html/
    
  4. Create a new folder named errors (if it doesn’t already exist).

You are now in the error page directory!


2️⃣ Creating a Custom 404 Error Page

  1. Inside the errors folder, create a new file called 404.html.

  2. Open the file and add a custom message:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Page Not Found</title>
    </head>
    <body>
        <h1>Oops! Page Not Found (404)</h1>
        <p>Sorry, the page you are looking for does not exist.</p>
        <a href="/">Go Back to Homepage</a>
    </body>
    </html>
    
  3. Save the file.

Your custom 404 error page has been created!


3️⃣ Configuring Error Pages in .htaccess

  1. In File Manager, locate or create the .htaccess file in:

    /home/user/web/yourdomain.com/public_html/
    
  2. Open .htaccess and add the following lines:

    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    
  3. Click Save and close the file.

Your server now uses custom error pages!


🎉 Conclusion

You have successfully created and configured custom error pages in Voltic Host Web Panel! Visitors will now see friendly error messages instead of generic server errors.

For more assistance, contact Voltic Host Support. 🚀