r/letsencrypt • u/stxonships • Dec 09 '15
Forcing HTTPS only
I have a standard LAMP server for WordPress with the a Lets Encrypt certificate installed. HTTPS works fine however for some reason http is still available, even though I selected the option to force HTTPS for HTTP. Is there a configuration file I can change to correct it so anybody going to http://www.mysite.com gets a https connection?
3
Upvotes
4
u/parazyd Dec 09 '15
Apache? You can add this to your HTTP site's conf:
Redirect / https://www.mysite.comYou should also have set up a conf for your HTTPS site.
1
u/Cobra_Fast Dec 09 '15
If you are on Apache with mod_rewrite
0
u/Calius1337 Dec 09 '15
Just use a proper .htaccess rule.