Problem with loading http when http/https is both enabled

(Hosein Naseri) #1

FMy forum runs on both http and https protocols. When I open http protocol in mobile, I can properly see the first page. However if i want to choose a topic, it doesnt load.

When i press retry button that discourse provided in the middle of the page, it doesnt change anything. But when I refresh the page entirely woth browser, it will load https version and it works fine.

Whats the problem with http here?


(Rafael dos Santos Silva) #2

If you enable HTTPS, you should enforce it and ditch HTTP.

The secure cookies that get saved when you login with HTTPS will block HTTP logins.

(Hosein Naseri) #3

My problem isnt login. This happens even if its the first time user sees the forum. before login
And I didn’t enable force https just in case ppl could use http version

(Jay Pfaffman) #4

Forcing https is what you want. People who access http version will be redirected to https version. It will solve this problem and many others.

(Hosein Naseri) #5

I’m worried for ppl having lower versions of android that doesn’t support https.

(Rafael dos Santos Silva) #6

Discourse itself doesn’t support Android < 4.4ish so, it can break in many ways (CSS Flexbox, JS, etc).

(Jay Pfaffman) #7

This is beyond my area of expertise, but it’s hard for me to imagine that there is any version of Android that does not support https.

this page says

which implies that https has been supported at least since Froyo came out in 2010.

(Hosein Naseri) #8

ok. I agree I finally need to press that force_https button. However is it irreversible?

(Jay Pfaffman) #9

Not very.

Most browsers will remember that the site is https and refuse to connect to an insecure site in the future.