Redirect to HTTPS via .htaccess

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://
And I also uploaded an English version of the site :
The English pages open nicely, “locked” and secure
but not the pages which remain unlocked as
Now, when I open a page of the section and use the link to
then it opens as 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,
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 !



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

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 !



PastedGraphic-1 - copie.jpg

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