Skip to content

Instantly share code, notes, and snippets.

@katzueno
Last active September 29, 2016 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katzueno/38eeecb606c7ea5661953cd6368ef972 to your computer and use it in GitHub Desktop.
Save katzueno/38eeecb606c7ea5661953cd6368ef972 to your computer and use it in GitHub Desktop.

サクラインターネットで concrete5 を常時 SSL にするための方法

  • concrete2.php を concrete.php という名前に変更
  • canonical_url と canonical_ssl_url 両方の値を https:// の値を自分のサイトのドメインに変えて
  • 変更したファイルを保存
  • /application/config/ フォルダにアップロードしてください

concrete1.php は参考です。デフォルトでの設定は null になっています。

<?php
return array(
'seo' => array(
'canonical_url' => null,
'canonical_ssl_url' => null,
),
);
<?php
return array(
'seo' => array(
'canonical_url' => "https://example.com/",
'canonical_ssl_url' => "https://example.com/",
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment