Skip to content

PHP not understanding https when behind a proxy #222

Answered by Eliepse
Eliepse asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the help! I did trusted the proxy. I finally found a fix ! Wordpress doesn't recognize "Forwarded" header natively, it only checks the $_SERVER["SERVER_PORT"] which is "80" in my case. The documentation indicate a solution, but it was hard to find!

https://developer.wordpress.org/reference/functions/is_ssl/

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Eliepse
Comment options

Answer selected by Eliepse
Comment options

You must be logged in to vote
1 reply
@Eliepse
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants