---
title: Redirect insecure HTTP to TLS (SSL, HTTPS) in VCL
summary: Redirect any requests that come into a VCL service on insecure HTTP, to the equivalent TLS endpoint (the Compute platform does this automatically).
url: https://www.fastly.com/documentation/solutions/examples/force-tls-ssl-https
---

Redirect any requests that come into a VCL service on insecure HTTP, to the equivalent TLS endpoint (the Compute platform does this automatically).

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/f27c54ad)

