Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to auto-redirect non-ssl to ssl? #7

Open
nezam05 opened this issue Nov 30, 2018 · 3 comments
Open

How to auto-redirect non-ssl to ssl? #7

nezam05 opened this issue Nov 30, 2018 · 3 comments

Comments

@nezam05
Copy link

nezam05 commented Nov 30, 2018

Hi,
after rcssl installed certs, how to auto-redirect non-ssl traffic to ssl version?

@UltraInstict
Copy link

If you on wordpress use Really Simple SSL plugin and activate

@nezam05
Copy link
Author

nezam05 commented Dec 7, 2018

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

@lesaff
Copy link

lesaff commented Mar 29, 2019

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants