# Disable force-https?

**URL:** <https://community.letsencrypt.org/t/disable-force-https/13602>\
**Category:** Help\
**Created:** [April 1, 2016, 10:15pm UTC](https://community.letsencrypt.org/t/disable-force-https/13602 "2016-04-01T22:15:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![qntnm](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/qntnm/32/6419_2.png) [@qntnm](https://community.letsencrypt.org/u/qntnm)\
**Post date:** [April 1, 2016, 10:15pm UTC](https://community.letsencrypt.org/t/disable-force-https/13602/1 "2016-04-01T22:15:17Z")

</div>

Hey, I was wondering if there was a way to remove the forcing of https over http!

I’ve removed the RewriteRule from my site.com.conf but it still seems to force https even after restarts and `./letsencrypt-auto rollback`.

Any solutions?

---

<div class="post-metadata">

**Author:** ![rugk](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rugk/32/19612_2.png) [@rugk](https://community.letsencrypt.org/u/rugk)\
**Post date:** [April 1, 2016, 10:29pm UTC](https://community.letsencrypt.org/t/disable-force-https/13602/2 "2016-04-01T22:29:53Z")

</div>

It propably used [HSTS](https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security), which basically said “caches” the http-\>https redirect and therefore it is not easy to stop using HTTPS.  
But depending on the `max-age` directive of the HSTS header it may go away sooner or later. Until then you should continue to support HTTPS, otherwise website users are likely to get errors.

---

<div class="post-metadata">

**Author:** ![qntnm](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/qntnm/32/6419_2.png) [@qntnm](https://community.letsencrypt.org/u/qntnm)\
**Post date:** [April 1, 2016, 10:31pm UTC](https://community.letsencrypt.org/t/disable-force-https/13602/3 "2016-04-01T22:31:59Z")

</div>

Thanks for the answer! I’ve gotten rid of problems (non-https resources, etc.) for now but it would be nice not to worry about them in the future. Glad to hear it’s not permanent!

---

<div class="post-metadata">

**Author:** ![Svavar\_Kjarrval](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@Svavar\_Kjarrval](https://community.letsencrypt.org/u/Svavar_Kjarrval)\
**Post date:** [April 2, 2016, 10:58am UTC](https://community.letsencrypt.org/t/disable-force-https/13602/4 "2016-04-02T10:58:28Z")

</div>

The max-age variable in the HSTS header can be set to 0. Any client retrieving a valid HTTPS header from the site after that, will no longer enforce it.

---

<div class="post-metadata">

**Author:** ![rugk](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rugk/32/19612_2.png) [@rugk](https://community.letsencrypt.org/u/rugk)\
**Post date:** [April 21, 2016, 4:51pm UTC](https://community.letsencrypt.org/t/disable-force-https/13602/5 "2016-04-21T16:51:54Z")

</div>

But it is worth to mention that the HSTS header with `max-age=0` is only valid when it is served over HTTPS. Everything else would defeat its purpose.

So basically you need HTTPS support to “disable” HSTS.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [May 21, 2016, 4:51pm UTC](https://community.letsencrypt.org/t/disable-force-https/13602/6 "2016-05-21T16:51:54Z")

</div>

Closed on May 21, 2016, 4:51pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
