Warning: Undefined array key "description" in /home/creativebx01/nichiyoubi.jp/public_html/wp-content/plugins/wp-ogp/wp-ogp.php on line 190

Warning: Trying to access array offset on null in /home/creativebx01/nichiyoubi.jp/public_html/wp-content/plugins/wp-ogp/wp-ogp.php on line 190

.htaccessだけの変更でSSL対応する方法

ちょっと興味深かったのでメモ

SSLを考えずに作られているページを、.htaccessだけの変更でSSL対応する方法をご紹介します。
もちろん、サーバがSSLに対応している必要はありますが…。
さらに.htaccessとmod_rewriteが入っている必要もあります。

SSLページにしたいHTMLファイル(PHP等でも可)のあるディレクトリに.htaccessファイルを作成し、下の文を追加します。

http://www.meibinlab.jp/nishijima/archives/54