https://www.howtoforge.com/community/threads/redirection-to-https-not-work-for-specific-condition.80284/#post-380545