MyBB Community Forums

Full Version: supporting https and http
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi there! So by default MyBB pulls from the board url and the board url states to use http://. before you start it. However, if you have https enabled it doesn't auto adjust so of course all css styles will not load.

I set it to //mysite.com and it works fine. would this have any other effects on the browsing experience?
I'm not sure I understand what you mean. If you have changed your forum to https and you are asking how to load the sheets over https instead of http you need to edit the board url in your configuration settings and adjust it to https. If you don't mean this please try to explain more.
Hi Ben!

By default many hosting servers now offer access to both http:// and https:// by default. However with MyBB you can only have one or the other, not both. All the templates you guys have pull from $mybb->settings['bburl'] which in turn is this setting:

Board URL
The url to your forums.
Include the http://. Do NOT include a trailing slash.

That description is misleading. I changed it from http://mysite.com to //mysite.com to support both http/https as that's what you do when you fetch resources. I wanted to know would not having an http: or https: cause issues long term?
It might cause problems when it's being used as an actual address of the forum, like in email messages.
I would recommend simply running your forum over HTTPS - allowing both protocols can pose a security risk, see https://en.wikipedia.org/wiki/Downgrade_attack.