Support Centre

Adding Custom Errors

3*3*3*3*3*

Article

Instead of the default custom error pages, you can create your own, more friendly, custom error pages. Currently HSphere supports the following custom errors:

  1. 400 Bad Requests
  2. 401 Authorization Required
  3. 403 Forbidden
  4. 404 Page Not Found
  5. 405 Method Not Allowed
  6. 500 Internal Server Error
  7. 501 Method Not Implemented
Set the error documents through the control panel
  • Login to your H-Sphere panel at http://cp.hosting365.ie/.
  • Click the "Web Options" icon under the "Main" section of your control panel; if you have multiple domains, click the "Edit" icon next to the domain you would like to work on, which will open a web configurations/settings page.
  • Click the "Add" icon next to "Error" setting.
  • Select the custom error code from the pull down list (e.g. "404|Not Found").
  • If you would like the error to be redirected:
  • Enter /custom.php or whatever the name of your custom error page. This path is relative to your web site root directory. So entering "/custom.php" will instruct the web server to redirect the page to http://www.yourdomain.com/404.php everytime the web server receives the give error code.
  • Click the "Redirect" radio button.
  • Click the "Submit" button.
  • If you would like to display a simple text message:
    • Enter the text message.
    • Click the "Message" radio button.
    • Click the "Submit" button.
    Don't forget to click the "Apply" link near the top of the web configurations/settings page. You may need to wait 5-15 minutes for the web server to restart itself before the changes will take effect.

    Rate This Article

    How useful was this article?

    Not useful A little useful Useful Very useful Everything I needed