MyBB-Google-SEO icon indicating copy to clipboard operation
MyBB-Google-SEO copied to clipboard

https redirect

Open frostschutz opened this issue 10 years ago • 3 comments

currently the redirect forces users to (not) use https depending on the bburl setting

there should be a setting to make it ignore https status so users can choose themselves whether they want to use https or not.

frostschutz avatar May 01 '14 13:05 frostschutz

cloudflare seems to set

[HTTP_X_FORWARDED_PROTO] => https
while
[SERVER_PORT] => 80
etc.

This just doesn't work well. Maybe the redirect should just be relative whenever possible...

frostschutz avatar Oct 15 '14 21:10 frostschutz

For cloudflare in particular there is also [HTTP_CF_VISITOR] => {"scheme":"https"}

frostschutz avatar Feb 27 '17 15:02 frostschutz

This was just creating a redirect loop on my forum ... We just upgraded to use Caddy as a reverse Proxy. For sure, the PHP-Script thinks that it is an http-Request, even though it is https from the outside ... I think $_SERVER["HTTP_X_FORWARDED_PROTO"] (if set) should be valued more than the internal https-status. I also think that this should be labeled as bug.

Thomas131 avatar Aug 26 '17 19:08 Thomas131