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.
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.
Log on to the CDN console
On the left navigation bar, click domain names.
Select a domain to enter the management page.
Customize the 404 page.
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.
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`.