fixed wrong http/https SOGo redirects after login
use proper header name
fixed bug when port is different to 443

(duplicated port was added like :444:444)
Merge branch 'jacalvo/fix-sogo-https' into 3.5

Conflicts:
	main/core/ChangeLog