# Always redirect to HTTPS

**URL:** <https://community.letsencrypt.org/t/always-redirect-to-https/10838>\
**Category:** Help\
**Created:** [February 14, 2016, 11:13pm UTC](https://community.letsencrypt.org/t/always-redirect-to-https/10838 "2016-02-14T23:13:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![sahsanu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/sahsanu/32/89984_2.png) [@sahsanu](https://community.letsencrypt.org/u/sahsanu)\
**Post date:** [February 15, 2016, 11:26am UTC](https://community.letsencrypt.org/t/always-redirect-to-https/10838/8 "2016-02-15T11:26:27Z")

</div>

Well, I don’t know what is your conf, but you should have a file similar to youdomain.tld.conf in /etc/apache2/sites-enabled/ dir and you should add the part for https, something like this:

```
<VirtualHost *:443>
    DocumentRoot /path/to/your/site/documentroot
    ServerName yourdomain.tld
    ServerAlias www.yourdomain.tld
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/yourdomain.tld/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/yourdomain.tld/privkey.pem
    Header always set Strict-Transport-Security "max-age=0"
</VirtualHost>

```

Keep in mind that you should have the certs available in **/etc/letsencrypt/live/yourdomain.tld/** or apache will refuse to start.

---

_[View the full topic](https://community.letsencrypt.org/t/always-redirect-to-https/10838)._
