Nexcess Logo

How to create and manage custom error pages

Knowledge Base Home

Notice anything different?

We've enhanced the appearance of our portal and we're working on updating screenshots. Things might look different, but the functionality remains the same.
September 10, 2019

How Nexcess clients on physical (non-cloud) servers can use their SiteWorx account to create and manage custom error pages. 

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 our support team for assistance. An incorrectly handled .htaccess file can cause major problems for your website.

What you need

  • A backup of your .htaccess file

  • An enabled global or directory-specific .htaccess file. See How to create .htaccess files for details.

  • 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, (Global Directory Options or Per Directory Options), click Edit.

  4. Locate the Error Documents section, then click Add.

  5. From the Error Code drop-down list, 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. For example :

    • Relative to current directory: my404.html

    • Relative to root directory: /some/dir/my404.html

  6. Click Save.


For 24-hour assistance any day of the year, contact our support team by email or through your Client Portal.


Jason Dobry
We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.