All Products
Search
Document Center

Forcible redirect

Last Updated: Dec 25, 2020

You can use the forcible redirect feature to redirect the original requests from a client to edge nodes as HTTP or HTTPS requests. This topic describes how to configure the forcible redirect feature.

Prerequisites

An HTTPS certificate is configured before you configure the forcible redirect feature. For more information, see Enable HTTPS secure acceleration.

Feature description

If you have enabled HTTP secure acceleration for domain names for CDN, you can forcibly redirect the original requests from users by customizing the redirect type.

Assume that you set the Redirection parameter to HTTP -> HTTPS. When a client initiates an HTTP request, the server returns a 301 response to redirect the request to the HTTPS version of the web page. The following figure shows an example.

Example

Procedure

  1. Log on to the ApsaraVideo VOD console.

  2. In the left-side navigation pane of the ApsaraVideo VOD console, find Configuration Management.

  3. Choose CDN Configuration > Domain Names. The Domain Names page appears.

  4. Find the domain name that you want to configure and click Configure.Select a domain name

  5. Click HTTPS. Then, click Modify in the Forced Redirection section.

    Forced Redirection
  6. Select a redirect type.

    Redirect typeThe following table describes the redirect types.

    Redirect type

    Description

    Default

    Both HTTP and HTTPS requests are supported.

    HTTPS -> HTTP

    The requests from a client to edge nodes are forcibly redirected as HTTP requests.

    HTTP -> HTTPS

    The requests from a client to edge nodes are forcibly redirected as HTTPS requests to ensure access security.

  7. Click OK.