MyBB Community Forums

Full Version: Change from http to https
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello. I need to set my forum from loading as http to loading as https. I am trying to follow instructions from the mybb resource here--  https://docs.mybb.com/1.8/administration...ity/https/    and this helpful thread here-- https://community.mybb.com/thread-207760.html   but have hit a wall.

SSL certiicate comes packaged with my site hosting plan.  But when I asked my site host to activate SSL I got locked out of my forum before I could change my board URL to https. Because the board was still set to http at this point the activated SSL somehow interfered with that, so the site wouldnt load and I couldnt log in to my account to change site settings.

My question is what order do I do these steps, so I dont lose access to the site partway through the setup? Thank you for any help
Log into your server, and find /inc/settings.php - open and find:

$settings['bburl'] = "http://www.yourdomain.com/forum";

and replace with:

$settings['bburl'] = "https://www.yourdomain.com/forum";

Be sure NOT to include a trailing '/' at the end of your directory.
(2024-02-21, 08:40 AM)MattyWjeisz Wrote: [ -> ]Log into your server, and find /inc/settings.php - open and find:

$settings['bburl'] = "http://www.yourdomain.com/forum";

and replace with:

$settings['bburl'] = "https://www.yourdomain.com/forum";

Be sure NOT to include a trailing '/' at the end of your directory.


Thank you! To clarify my forum is the main page of the domain not a subdirectory i.e. mydomain.com  is my actual forum. So does it work similarly? I will find inc/settings.php, open it, and find 

$settings['bburl'] =
"http://www.mydomain.com";

and replace with

$settings['bburl'] =
"https://www.mydomain.com";

does that sound correct? Thank you very much this is a big help
Yep, that is correct Smile
Wink Thanks so much you are a lifesaver!
You're very welcome!
Hello sorry to revive this thread but I wanted to know what code I am supposed to add to the htaccess file to redirect traffic to https. In the official mybb documentation it says to add this:

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

but in another thread -- https://community.mybb.com/thread-237840.html  -- it says to add this:


RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Which seems more correct?
None
Select All



And also all of the images in the site are broken at the moment. How do I restore the image links?

Forgot to add that the image paths broke after I redirected the site to https