SSL problem

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

Hello there,

Try using this code instead:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Once you saved your changes make sure to clear your browser cache first before revisiting your website to check if it’s working.

1 Like

Thank you very much. Clearing the cache helped enormously!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.