There are times when you would like to set up a custom error page for any particular page or for a page which doesn’t exist, and the error page will redirect to the page which you want.
We can use the H-Sphere control panel to set the error page.
To configure Error Pages, follow the steps below:-
Step 1: Login to your H-Sphere control panel.
Step 2: Go to Domain Settings > Web Options for the domain.
Step 3: Scroll down to find the Error option and then click the Add icon on its right.
Step 4: In the form that appears, enter the error document settings:
Error Document Code: Choose the one you need from the drop-down box.
For example: the 404 Not Found message or URL: Any Message you want to display or the path to the page with the ERROR message.
Type: Specify if the text in the previous field must be treated as a URL (Redirect) or as a text message (Message).
Step 5: After this, click on the Submit button at the bottom and you’re done with setting up an error page.
That’s it. After this, you can test by browsing any of the domains with /xyz.php or /xym.asp – pages which don’t exist inside your domain folder and you will be redirected to the page which you’ve setup.
]]>