I know it sounds weird and im new to this community and give it high hopes as it seems to have more potential than Discourse, but I used a code from an open source buddy and showed me how to force http or https so if someone messes up it wont look bad on the user.
Place under Appearance/Edit Custom Header and it
Below forces https:
<script>
if (window.location.protocol == "http:") {
console.log("You are not connected with a secure connection.")
console.log("Reloading the page to a Secure Connection...")
window.location = document.URL.replace("http://", "https://");
}
if (window.location.protocol == "https:") {
console.log("You are connected with a secure connection.")
}
</script>
Below forces http:
<script>
if (window.location.protocol == "https:") {
console.log("You are not connected with the correct protocol.")
console.log("Reloading the page to the correct protocol...")
window.location = document.URL.replace("https://", "http://");
}
if (window.location.protocol == "http:") {
console.log("You are connected with the correct protocol.")
}
</script>
Tell me if this helps your forums or not. These force the protocol and if you went to http://discuss.flarum.org/, you would be redirected to https://discuss.flarum.org/ instead. IK some know this, but this should be helpful to those who don't know about it yet.
console.log is not needed, but is useful for those who are curious why it happens when they try to use a protocol and can be a useful extension once i learn more on how to make extensions here.