Contact
Site: US UK AU |

Creating and managing custom error pages

How to create and manage custom error pages

Overview
This article illustrates how to use your SiteWorx account to create and manage custom error pages for your website. 

The SiteWorx control panel allows you to easily add specific directives to the .htaccess file through the SiteWorx interface.  For example, when an error page like "404 - Page not found" is triggered, you can customize the content that displays on the error page.

Attention:

  • If you do not have experience handling .htaccess files, we highly recommend that you contact Nexcess support for assistance. An incorrectly handled .htaccess file can cause major problems for your website.

  • Always back up your .htaccess file before making changes to it.

Prerequisites

  • A custom file that contains the text to appear when the specified error code is triggered, for example, "my404.html."

Creating a custom error page

For each custom error page, you will specify the appropriate error code and enter the name for the file that contains the information to be displayed when a user triggers the error.

  1. Log in to your SiteWorx account.
  2. On the main menu, click Hosting Features > Htaccess.
  3. Under the section corresponding to the directory that you want to manage, either Global Directory Options  or Per Directory Options, click Error Documents.
  4. Under  Error Code, select the desired error code. In the "Error Page"  field, specify the file name that is either relative to the current directory or relative to the root directory. You can also opt to enter a fully-qualified URL to another page
    Example :
    • Relative to current directory: my404.html
    • Relative to root directory: /some/dir/my404.html
  5. Click Add.

Editing a custom error page

  1. Log in to SiteWorx.
  2. On the main menu, click Hosting Features > Htaccess.
  3. Under the section corresponding to the directory that you want to manage, either Global Directory Options or Per Directory Options, click Error Documents.
  4. Next to the relevant custom error document, click Edit.
  5. To change the error code, select the desired error code from the Error Code list.
  6. To specify a different file name for the error page, enter the file name and path in the Error Page field.
    Example:
    • Relative to the current directory: my404.html
    • Relative to the root directory: /some/dir/my404.html
  7. Click Save.

Deleting a custom error page

  1. Log in to SiteWorx.
  2. On the main menu, click Hosting Features > Htaccess.
  3. Under the section corresponding to the directory that you want to manage, either Global Directory Options  or Per Directory Options, click Error Documents.
  4. Next to the relevant custom error document, click Delete. To quickly select all custom error documents listed, click Check All.
  5. Under with selected, select Delete.
  6. When prompted for confirmation, click OK. You will see the message, "Error document successfully deleted" at the top of the page.

    For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to allow or block hostnames and IP addresses
Added on Wed, Jul 31, 2013
How to redirect a non-WWW web address to a WWW web address
Added on Fri, Aug 2, 2013
How to create .htaccess files
Added on Fri, Aug 2, 2013
How to enable and disable .htaccess files with SiteWorx
Added on Mon, Aug 5, 2013
How to create and manage MIME types
Added on Tue, Aug 6, 2013
How to block IPs with .htaccess
Added on Tue, Aug 6, 2013
How to create and manage Apache handlers
Added on Tue, Aug 6, 2013
How to manage index files
Added on Mon, Aug 5, 2013
What is .htpasswd?
Added on Mon, Nov 10, 2014
How to prevent bandwidth theft or Hotlinking
Added on Mon, Aug 5, 2013