RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I used this same htaccess in another site that also installed the same certificate, and CSS loaded correctly on both devices. I would like to know if someone has gone through something like this and can help me solve this problem.