Customize the 404 page

Last Updated: Nov 26, 2017

Introduction

You can customize the page that is displayed when a 404 status code is returned. The following three options are available:

  • Default 404 page: when an HTTP 404 error is returned, the server returns the default 404 Not Found page.
  • Custom 404 page: when an HTTP 404 error is returned, the server redirects it to the customized 404 page you designed and edited. In this case, you need to predefine a complete URL for the page.

Note:

  • The public welfare 404 page is a public welfare resource of Alibaba Cloud. It is free and generates no traffic fees.

  • Custom 404 pages are personal resources which are billed based on normal delivery.

Operation procedure

  1. Log on to the CDN console

  2. On the left navigation bar, click domain names.

  3. Select a domain to enter the management page.

  4. Customize the 404 page.

55

  1. If you select the **Custom 404** option, you need to store the page resources, like other static files, under the origin site domain. You can access the page through a CDN domain by entering the complete URL (including `http://`) of the CDN domain.
  2. For example, if the CDN domain is `exp.aliyun.com` and the 404 page is `error404.html`, you can store the `error404.html` page to the origin site. Select the **Custom 404** option, and enter `http://exp.aliyun.com/error404.html`.
Thank you! We've received your feedback.