LoginSignup
0
0

More than 1 year has passed since last update.

wordpress https (secure backend)

Posted at

https://wordpress

wordpress が https のバックエンドに対応していないので対応してみた。

成果物

手順

どっかに http:// って書いてあるのが原因なので全置換

http://
//

  • コミットハッシュ: 963dec59

ドメインの先頭が削られるので substr 7 を見つけ出す

substr($uri, 0, 7)
substr($uri, 0, strlen($protocol))

  • コミットハッシュ: afb37416

成功した

その他

$_SERVER['X-FORWARDED-PROTO'] とか使ってもできそう

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0