# Force Redirect HTTP to HTTPS

**URL:** <https://meta.discourse.org/t/force-redirect-http-to-https/57393>\
**Category:** Product Support\
**Created:** [February 14, 2017, 10:17pm UTC](https://meta.discourse.org/t/force-redirect-http-to-https/57393 "2017-02-14T22:17:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [February 15, 2017, 12:45am UTC](https://meta.discourse.org/t/force-redirect-http-to-https/57393/4 "2017-02-15T00:45:54Z")

</div>

> [@arothberg](#):
>
> What does the `force https` setting do if it doesnt set HSTS and it doesnt do a 3xx redirect?

Add the SSL-only cookies among [other things](https://github.com/discourse/discourse/search?l=Ruby&q=force_https&utf8=%E2%9C%93).

In our recommended way to setting SSL, this is all handled automatically:

> <https://github.com/discourse/discourse_docker/blob/master/templates/web.ssl.template.yml#L12>

---

_[View the full topic](https://meta.discourse.org/t/force-redirect-http-to-https/57393)._
