I have added my SSL certificate to my website and it works fine. What happens is that I have to specifically look for https://www.domainname.com , and that is not very effective. If I look for it as it is, without the https://, I get the non-secure version of my website.
Isn't there any way, when someone directly searches for domainname.com, the secure page (with SSL) is opened directly?
Thank you
In your .htaccess file you can use this code so that all the traffic of your site is redirected to Https:
You have several options:
1) Virtual Host: you can modify your virtual host file and indicate there that all requests through port 80 go to your website through port 443 :
2) Index.php: if you have PHP installed on your server, you can use the root folder where your domain is pointing and place an index.php file so that you can redirect to your domain with port 443: :
3) .htaccess: you can create a configuration file for Apache in the root folder where your domain is pointing so that it redirects you: