cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Redirect my website to HTTPS in cPanel/Linux

So I bought a SSL certificate. but cannot get my site to say its secure. help chat told me that I had to replace part of my htaccessfile with 

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?coolexample\.com
RewriteRule ^(.*)$ https://www.coolexample.com/$1 [R,L]

after  

^my domaine name 

 

This did not work and ended up crashing my site. Can anyone help? i just want my site to show as secured.