Set a 404 error page

更新时间:
复制 MD 格式

When a visitor requests a page on your website that does not exist, the server returns a 404 status code and displays a 404 error page. A custom 404 error page lets you guide visitors to other relevant content, improving the user experience and preventing them from leaving your site. This topic describes how to set a custom 404 error page in the hosting management console. The example uses a Standard edition of exclusive web hosting that runs the Linux operating system.

Important

The entry-level edition of shared web hosting does not support custom 404 error pages. To use this feature, upgrade your Web Hosting instance to a higher edition. For more information, see Upgrade a Web Hosting instance.

Procedure

Follow these steps to set a new 404 error page or to modify an existing one.

Note

Before you begin, create a custom 404 error page and upload it to the root directory of your Web Hosting instance.

  1. Log on to the Cloud Web Hosting management page.
  2. Find the Cloud Web Hosting instance that you want to manage and click Manage in the Actions column.
  3. In the navigation pane on the left, choose Basic Environment Settings > 404 Page Settings.
  4. On the 404 Page Settings page, click Browse.

  5. In the File Directory dialog box, select your custom 404 error page and click OK.

  6. On the 404 Page Settings page, click Set 404 Error Page.

  7. In the confirmation dialog box, click OK.

    The 404 error page is set. You can click Reset, Restore Default Settings, or Preview Settings Page as needed.

References