public function before() { // HTTP通信ならリダイレクトする if (!strstr(Input::protocol(), 'https')) { $url = 'https://' . Input::server('HTTP_HOST') . Input::server('REQUEST_URI'); Response::redirect($url, 'location', 301); die; } return parent::before(); } Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use d