.htaccess for redirecting to https not working

my website is at jakubantosz.me

I am trying to set up an htaccess file to redirect to HTTPS, but it does not seem to be working.

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

Hi and welcome to the forum

you seem to have succeeded

Sometimes it is necessary to do purge cache on CF
as well as delete the cache in the browser with CTRL + F5

Can we close the topic ?

4 Likes

Wow I feel dumb. Thanks!

1 Like

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