Redirect to HTTPS via .htaccess

Hello,
I have a strange problem with https.
And I haven’t found the answer in the FAQ.

My hoster is Planethoster. They deliver free certificates.
As was indicated I uploaded my site using the web address https:// www.mysite.com
And I also uploaded an English version of the site : https://www.eng.mysite.com
The English pages open nicely, “locked” and secure
but not the mysite.com pages which remain unlocked as http://www.mysite.com
Now, when I open a page of the eng.mysite.com section and use the link to mysite.com
then it opens as https://mysite.com and is duly secure and locked.
So it is not a problem with an image or file from the website.

I asked Planethoster for support.
They provided me with a link to a tutorial :
how to redirect to https using Wordpress, Prestashop or Joomla,
OR
how to create an .htaccess file at the root of the site :

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

Well… I don’t quite understand why, where and how to do that
and I don’t feel comfortable messing with the root access of the site.
If anybody has a different suggestion you are welcome !

Thanks

M.

RapidWeaver 8 has a built-in htaccess editor in the publishing settings

THANKS !
I hadn’t seen that, but I finally ventured on CPanel and with a little help from another tuto I created the proper file…
and it works !

Best

M.

PastedGraphic-1 - copie.jpg

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