Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Allstar123456 on January 11, 2021, 02:27:08 PM

Title: Possible to have user selectable HTTPS?
Post by: Allstar123456 on January 11, 2021, 02:27:08 PM
I appreciate this might sound a bit weird, basically I'm wondering if it's even technically possible to have a user select-able switch in their profile settings that can make the site redirect all links to https:// ?

The reason is I brought back an old forum of mine from 2015 which is about a Mobile OS (Symbian) which is discontinued and struggles with HTTPS sites (anything above TLS1.0 won't open), but I of course would like the users who aren't browsing from that platform to be in HTTPS while Symbian users in HTTP and still able to browse the forum.

Thanks


Title: Re: Possible to have user selectable HTTPS?
Post by: shadav on January 11, 2021, 02:31:34 PM
I could be wrong but....if you don't use a redirect in your htaccess http to https then users should be able to view either one.... and if in your settings you don't set the forum address to https then both should be useable ?
Title: Re: Possible to have user selectable HTTPS?
Post by: Aleksi "Lex" Kilpinen on January 11, 2021, 02:43:28 PM
It could be a bit tricky, you would really want https -users to get _everything_ through https, but you couldn't really achieve this without forcing the http folks to see https stuff as well.
In short - It isn't really a good idea.
Title: Re: Possible to have user selectable HTTPS?
Post by: landyvlad on January 11, 2021, 05:13:31 PM
Let's go back a step.  Why would you want this as a function? Where's the downside to https?
Title: Re: Possible to have user selectable HTTPS?
Post by: Sir Osis of Liver on January 11, 2021, 08:04:17 PM
Put them in different domains, cpanel has options per domain to force https or not, you should be able to run one in https and the older one in http.
Title: Re: Possible to have user selectable HTTPS?
Post by: GigaWatt on January 12, 2021, 05:37:01 AM
Let's go back a step.  Why would you want this as a function? Where's the downside to https?

The OP wants Symbian users to be able to browse the forum correctly... and Symbian has no support for https and no implementation is planned since it's EOL.

Put them in different domains, cpanel has options per domain to force https or not, you should be able to run one in https and the older one in http.

This is actually the only viable scenario that I can think of as well. No good for search engines, but it'll work.
Title: Re: Possible to have user selectable HTTPS?
Post by: Allstar123456 on January 12, 2021, 06:45:56 AM
I could be wrong but....if you don't use a redirect in your htaccess http to https then users should be able to view either one.... and if in your settings you don't set the forum address to https then both should be useable ?


My only worry there is let's say someone shares a https link on social media, a Symbian user tries to open it they will just get a blank screen (there's no good error messages on Symbian browsers it's just a blank screen); unfortunately not many of them understand they need to change the url to http.



Put them in different domains, cpanel has options per domain to force https or not, you should be able to run one in https and the older one in http.


I think this is the only option, bugger.





Thanks for your help everyone, I thought it would be something that's not possible.
Title: Re: Possible to have user selectable HTTPS?
Post by: GigaWatt on January 12, 2021, 03:59:32 PM
My only worry there is let's say someone shares a https link on social media, a Symbian user tries to open it they will just get a blank screen (there's no good error messages on Symbian browsers it's just a blank screen); unfortunately not many of them understand they need to change the url to http.

Just use plain old http. My forum is still on http with no plans on migrating in the near future, still up and running ;).

Though with 2 or 3 posts a week ::), but still... if nothing else, bots seem to like it ;D.