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
Log on to the ApsaraVideo VOD console.
In the left-side navigation pane, choose Configuration Management > CDN Configuration > Domain Names.
Find the domain name that you want to configure and click Configure in the Actions column.
Click HTTPS. Then, click Modify in the Forced Redirection section.
In the dialog box that appears, specify the Redirection parameter. The 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.
Click OK.