Upgrading to https, error message

akeller1862

New member
Joined
Feb 26, 2024
Messages
4
I've recently upgraded my site to https and have not been able to get any of the pages on my site to come up again. I've added the following code to the .htaccess file, but it didn't work.

RewriteEngine On

#Make sure that we are https
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Would like to know what I am doing wrong so I can get the site back up.
 
Okay, login to Directadmin, go to domain setup, click on your domain and click the box Force SSL with https redirect
 
Back
Top