All Products
Search
Document Center

Custom error page

Last Updated: Aug 06, 2018

Introduction

You can customize the page that is displayed when a 404 status code is returned.

Three options are available: default page, public welfare page, and custom page.

Take returned code 404 as an example:

  • Default: When an HTTP 404 error is returned, the server returns the default 404 Not Found page.

  • Public welfare 404: When an HTTP 404 error is returned, the server returns to the real-time update of the public welfare 404 page. View public service 404 page.

  • Custom 404: When an HTTP 404 error is returned, the server returns to the 404 page designed and edited by the user..

Restrictions and guidelines

  • 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.

Procedure

  1. On the Domain Names page, select a domain name, and click Configure.

  2. Go to Caching > Custom Page, and click Add.

    98

    If you select Custom 404, you need to store the page resources, like other static files, under the origin site domain. You can access the page through a DCDN domain by entering the absolute URL. Enter the absolute URL of the DCDN domain name (including http://).

    For example:

    The DCDN domain name is exp.aliyun.com, and the 404 page is error404.html. You can store the error404.html page to the origin site.

    Select Custom 404, and enter http://exp.aliyun.com/error404.html.