tencent cloud


Custom Error Page

Last updated: 2021-11-15 16:27:09

    Feature Overview

    You can configure the custom error page, and redirect requests with the specified status code to the specified URL.

    Currently supported status codes are as follows:

    • 4XX: 400, 403, 404, 405, 414, 416, and 451
    • 5XX: 500, 501, 502, 503, and 504

    • This feature may be unavailable on some platforms. We will complete the server upgrade as soon as possible.
    • This feature is only for redirecting requests encountered status codes during origin-pull, but not applicable to requests with status codes returned by any access control features such as the UA blocklist/allowlist configuration.

    Configuration Guide

    Viewing the configuration

    Log in to the CDN console, select Domain Management on the left sidebar, click Manage on the right of a domain name to enter its configuration page, and switch to the Advanced Configuration tab to find the Custom Error Page Configuration section.

    The custom error page configuration is disabled by default.

    Adding rules

    You can click Add Rule to add custom error page rules as needed.

    Configuration limitations

    • Each status code can only have one unique rule.
    • Redirect: 301 or 302.
    • Destination URL: http:// or https:// is required.
    • The content can contain up to 1,024 characters and Chinese characters are not supported.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support