Detecting HTTPS requests in PHP

前端 未结 3 2077
醉话见心
醉话见心 2020-12-25 14:59

The problem that I am having has to do with the need to keep some urls of a website protected by HTTPS and the rest kicked to HTTP.

Normally, you have $_SERVER

3条回答
  •  北海茫月
    2020-12-25 15:38

    If the load balancer is the other end of the SSL connection, you cannot get any more info than the load balancer explicitly provides. I would go for adding a http header, it may already be doing that, dump all the HTTP headers and look.

    As another solution, you can do the redirection on the load balancer based on URL.

提交回复
热议问题