Activate the Fastly’s Force TLS functionality in the Commerce Admin to enable the global HTTP to HTTPS redirect for all pages of your Adobe Commerce on cloud infrastructure store.
This article provides detailed steps, a quick overview of the Force TLS feature, affected versions, and links to related documentation.
In this step, we define the secure URLs for the store. If that’s already done, go to Step 2: Enable Force TLS.
Related documentation in our user guide: Store URLs.
Related Fastly documentation: Force TLS guide for Adobe Commerce 2.
TLS (Transport Layer Security) is a protocol for secure HTTP connections that replaces its less secure predecessor—the SSL (Secure Socket Layer) protocol.
The Fastly’s Force TLS functionality allows you to force all incoming unencrypted requests for your site pages to TLS.
It works by returning a 301 Moved Permanently response to any unencrypted request, which redirects to the TLS equivalent. For instance, making a request for http://www.example.com/foo.jpeg would redirect to https://www.example.com/foo.jpeg.
Securing communications (Fastly documentation)
To enable HTTP to HTTPS redirect on all pages of your store, you do not have to add the pages to the
routes.yaml configuration file—enabling Force TLS globally for your entire store (using the Commerce Admin) is enough.