All Products
Search
Document Center

ApsaraVideo VOD:Configure URL redirection

Last Updated:Mar 14, 2024

You can configure the URL redirection feature to forcibly redirect requests from clients to points of presence (POPs) to HTTPS. This topic describes how to configure URL redirection.

Scenarios

For accelerated domain names for which SSL certificates are configured, you can enable URL redirection to redirect HTTP requests between clients and POPs to HTTPS. Compared with HTTP, HTTPS provides reinforced protection.结果验证

By default, the URL redirection feature uses the HTTP 301 status code. You can change the HTTP status code to 308. To change the HTTP status code, submit a ticket. For more information about how to submit a ticket, see Contact us.

HTTP status code

Message

Description

Scenario

301

Moved Permanently

GET requests remain unchanged. Requests that use other methods may be changed to GET requests.

Website refactoring.

308

Permanent Redirect

The request method and message body remain unchanged.

Website refactoring. This HTTP status code is suitable for requests that use request methods other than GET (with non-GET links/operations). (with non-GET links/operations)

Prerequisites

An SSL certificate is configured. For more information, see Enable HTTPS secure acceleration.

Procedure

  1. Log on to the ApsaraVideo VOD console.

  2. In the left-side navigation pane, choose Configuration Management > CDN Configuration > Domain Names.

  3. Find the domain name that you want to configure and click Configure in the Actions column.

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

  5. In the dialog box that appears, specify the Redirection parameter. p181991The following table describes the redirect types.

    Redirection

    Description

    Default

    Both HTTP and HTTPS requests are supported.

    HTTPS -> HTTP

    Redirects requests from clients to POPs to HTTP.

    HTTP -> HTTPS

    Redirects requests from clients to POPs to HTTPS to secure data transmission.

  6. Click OK.