HTTPS Site, link says HTTPS but goes to HTTP

Hello, so I recently got SSL installed to my site. I wanted to make sure that if people go to the http version they redirect to https. I found some code, and added this:

# Redirect non-www to www
# turn mod_rewrite on
RewriteEngine On
# If https send to https://www.
RewriteCond %{HTTP_HOST} ^$ [NC]
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$$1 [R=301,L]
# If http send to http://www.
RewriteCond %{HTTP_HOST} ^$ [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$$1 [R=301,L]` doesn’t work. does work (FYI)
That redirects fine (slowly when redirecting, don’t know why but not discussing that).
Issue is that if I’m currently in HTTPS://www ‘mode’ and I try to go to a page like for example my contact page.
If I hover over the link chrome says it will send me to
but when I do that it’s in http mode, with no security (not even limited ssl).
If I turn on https for my contact page, and click the home button back, still in HTTPS mode but the same thing occurs if I go back to /contact. (if that makes sense)

I’ve tired just using <a href='contact'> <a href='/contact'> <a href="//"> but doesn’t work
I’m guessing because chrome is saying it’s going to https, that its something happening interally

Thanks ~Jackz

1 Like

Issued is fixed. Cloudflare is currently redirecting everyone to https no matter what, this script I used is not running.
I don’t know how to close a thread or so…

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