lesaff / serverpilot-letsencrypt

(NO LONGER MAINTAINED) | Bash script to generate and install Let's Encrypt certificate for your websites on your ServerPilot account (Free or Paid Plan)
MIT License
346 stars 84 forks source link

Adding Redirect all traffic to HTTPS to nginx option #46

Open joviczarko opened 7 years ago

joviczarko commented 7 years ago

Maybe it would be a good idea to make this option so after installing certificate we have option to redirect all traffic to HTTPS. Like the Certbot does it. If I figure out how it should be done I'll make a pull request.

caroseuk commented 7 years ago

This is done using .htaccess and the details can be found on the server pilot documentation:

https://serverpilot.io/community/articles/how-to-force-SSL-by-redirecting-http-to-https.html

davidmichelfonseca commented 7 years ago

Unfortunately I keep getting redirected to http: and wordpress is no longer accessible as I get a redirection error.

caroseuk commented 7 years ago

If it’s constantly redirecting then it’s more than likely a plug-in or core Wordpress setting which has http set. I would remove the redirect, check your settings in WP and any plugins you have a try again.

brettburwell commented 6 years ago

I actually ran into the same issue. The http version wouldn't even load (apparently it wasn't listening for port 80) so the .htaccess never kicked in.