New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to force SSL with .htaccess
T183539_42aa540cacdc
Member
in Help
How do I forcefully apply https on my website so that if any visitor visits http:// it should forward him to https forcefully?
This discussion has been closed.
Comments
Google.
https://stackoverflow.com/questions/13977851/htaccess-redirect-to-https-www#13997498
Lazy Bum. ;-)
But well, writing the OP probably took more time than a google search.
So: Inefficient lazy Bum! ;-)
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
in case you are using any cms, then you have other options as well
First post and rather than help you write ‘Google’. Thanks for participating in the forum and helping others!
At least others have been more useful and answered. Thanks @dfmcvn
He has a point though. Teaching him how to google would be the ultimate way of "helping" him.
Let's Encrypt has an option to enforce https?
Yes
Considering the only reason this guy comes to LET and posts is to ask questions that can be found out by Google, VERY easily - my response is more than justified. Check his posts & threads and then talk to me.
KristopherH is correct, please use Google before asking here.
Added: https://www.google.com/search?q=How+to+force+SSL+with+.htaccess