I have generated and uploaded a SSL certificate and a private key. My website now loads in secure mode providing the user types
https://name.xyz
If the user types just name.xyz it loads as Not Secure. How do I force secure loading?
I note that there is a .htaccess file already in position. I cannot edit it. The help file says I should create a ,htaccess file in the htdocs folder. I have done this. Below is the beginning of my .htaccess file. It does nothing! What should I do?
#to force use of https rather than http
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
# followed by the contents of the existing .htaccess file