Hello everyone,
First of all, thanks for your help in advance -- I know this is probably a silly question but I just can't figure it out.
So I want to redirect all HTTP to HTTPS version of the site. I've set up my SSL certificate using Letsencrypt and it's working well, but everytime I type in the url without https it still goes to the http site.
I have tried setting up
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
in the .htaccess file in the root directory of my doku wiki folder, but it doesn't seem to work.
Is there something else that I should do...?
I'm using Ubuntu 18.04, with Apache 2.4.29.
I would appreciate any help, thank you!