Force all traffic to HTTPS

etreesrs.epizy.com

Just activated ssl via —>etreesrs.epizy.com ZeroSSL
used the foll code in .htaccess

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

and … changed all http to https in pages - BUt the padlock still displays “Not Secure”
the websited are all displaying correctly - no errors in coding - just the padlock has Not Secure. Any remedy or ideas? thanks a ton

HTTPS does work on your website, but the URL forwarding is not. Can you share the entire .htaccess file here?
Thanks

On an unrelated note, the marquee tag is not really used anymore, as it annoys many. It is technically allowed though.

heh ty for responding - ref marquee - ya am aware of tat :)) it works fine in Tor but not on other browsers! not imp.

the htaccess file is listed below - have tried it both ways viz placing code before directory and after directory - pages load perfectly fine with no coding/script errors - but padlock displays ‘Not Secure’ with browser stating this:

Server Type: nginx
The certificate will expire in 89 days.
The hostname (etreesrs epizy com) is correctly listed in the certificate.
The certificate is not trusted in all web browsers. You may need to install an Intermediate/chain certificate to link it to a trusted root certificate. Learn more about this error. The fastest way to fix this problem is to contact your SSL provider.
Common name: etreesrs.epizy.com

Valid from October 14, 2021 to January 13, 2022
Serial Number: 1d14a8b5b1885a36e82d0eb43306de1e
Signature Algorithm: sha384WithRSAEncryption
Issuer: ZeroSSL RSA Domain Secure Site CA

htaccess file
directory etreesrs.epizy.com
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Instead of

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Try this

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I believe [OR] is the key

1 Like

thanks - trying now! :))

Remember to clear browser cache

nah still stating ‘not secure’

ya cleard cache

Works for me

image

lol what in tarnations!! it does indeed!!
darn dont know y not on this end!

can you surf in incognito mode?

lol my post is hidden now cant respond

ya can surf incognito bu with same error on padlock ‘not secure’

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