MyBB Community Forums

Full Version: SSL login redirect problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2010-08-09, 01:48 PM)mark-in-dallas Wrote: [ -> ]How about an .htaccess redirect from http to https?

I thought about this, but wouldn't it require them to be able to first access the site over http for them be redirected to https? Port 80 is being blocked at the ISP.
So I assume your hosting this locally or something? (In your house).
I just reinstalled to another directly /mybb2 (still have the /mybb to compare) and I no-longer have the double url redirect issue with trying to login from "Hello There, Guest! (Login — Register)"

I still have the problem with the non https redirect using the username and password settings from the main page, calendar, etc...

The uesrname and password from the "portal.php" page works, so I don't know what the difference is, between the two.
I found out what causes the double URL redirection issue.

Under "Server and Optimization Options" if I turn off "Friendly Redirection Pages" and login using the login option from "Hello There, Guest! (Login — Register)" I get redirected to "https://mydomain.org/mybb/https://mydomain.org/mybb/index.php"

Turning "Friendly Redirection Pages" back on makes the redirection work, but then I get the annoying you will be redirected page instead of just going there. Smile

I still have the problem with other logins except the one on the "portal page" and "Hello There, Guest! (Login — Register)" redirecting to http not https.
Same problem here. Solved by using "Friendly Redirection Pages". I edited the "Redirect"-Template to redirect immediately to avoid the annoying waite.

Probably caused by inc/functions.php in function redirect($url, $message="", $title="")
		if(my_substr($url, 0, 7) !== 'http://')
		{
			header("Location: {$mybb->settings['bburl']}/{$url}");
		}
		else
		{
			header("Location: {$url}");
		}
Checks only for "http://" and not "https://"
Pages: 1 2