runcloud-letsencrypt
runcloud-letsencrypt copied to clipboard
How to auto-redirect non-ssl to ssl?
Hi, after rcssl installed certs, how to auto-redirect non-ssl traffic to ssl version?
If you on wordpress use Really Simple SSL plugin and activate
If you on wordpress use Really Simple SSL plugin and activate
Thanks for your reply. I think there should be a solution at server level so that it works for all kinds of app
If you're using hybrid apache/nginx, add these lines to your .htaccess
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]