RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
If your web hosting provider do not offer free SSL certificate, you can register it with Cloudflare. They offer SSL free of Cost.I bought a shared hosting and added the websites to it but when I check with https, it didn't run. How can I add SSL for this shared hosting? or do i need to contact my hosting provider to do that?
as per above comments, looks like it due to mixed contentI check with https, it didn't run.
I never did this, it is openSSL or free SSL from cPanel?cPanel -> Security -> SSL / TLS Status
There is free SSL 'Let's Encrypt'. Your hosting provider can enable it for you.I bought a shared hosting and added the websites to it but when I check with https, it didn't run. How can I add SSL for this shared hosting? or do i need to contact my hosting provider to do that?
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
What type of site you you have? Most of the shared hosting plans now offer free Let’s Encrypt certificates. However, DV certs are not suitable for every website. They are a good option for primary sites and blogs but not so much for large e-commerce sites and official organizations.I bought a shared hosting and added the websites to it but when I check with https, it didn't run. How can I add SSL for this shared hosting? or do i need to contact my hosting provider to do that?
ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.
The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!