I have bought an SSL certificate and pasted it in the box “certificate”, and then pressed “Upload Certificate”, but my website is still “Not secure”. Could you please help me fix it?
Yes, I’m sorry to bother you again. I have just created the file .htaccess in the folder “htdocs” and added the code lines to that file, and then press “save” and “close”, but my website is still “Not secure”. Could you please tell me what should I do next?
I’m sorry that was my typing errors. I meant I pressed the “Upload Certificate” button (no “Upgrade”); then I created the file .htaccess in the folder “htdocs” and then added the code below but my website is still not secure.
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Yes, I’ve change the code lines in the file .htaccess in the folder “htdocs” to the code lines you gave me, but my website is still “Not secure.” Its url is learnforfree.net
Yes, when I created the .htaccess in folder “htdocs”, it didn’t work, so I try creating another file .htaccess in “learnforfree.net/htdocs”. I will delete it right now
I’m sorry bothering you again, but now that I’ve deleted that overlapping .htaccess in “learnforfree.net/htdocs”, my website is still “Not secure”. Could you please teach me how to fix it?
I guarantee you all my Private key, CRS key, and Certificate key are all submited sucessfully. The system has stored them without any errors, but my website is still “Not secsure”
Yes. I’ve changed the codes of .htaccess into the one shared by @Nadora, but in the current time my website is still not redirected to https, maybe it would take some days to take effects. Thank you @Greenreader9, @KangJL , @Nadora, @Wackyblackie, @jaikrishna.t . I really appreciate all your precious instruction.
Correct. .htaccess changes will not take effect until the cache period has ended, generally around 72 hours. You can speed up the process by clearing your cache in your browser.
Yes, I’m so happy it has worked now. a moment ago I accidentally uninstalled and reinstalled Wordpress ; then the wizard required me to deleted the .htaccess in the folder htdocs so that it could create another .htaccess in the folder “[domain]/htdocs”. Then I pasted the codes into that .htaccess file, and now the site has redirected sucessfully to https. Thank you so much for all your help ! it would’ve taken me forever without your instructions.