- 2009 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2008 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2007 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2006 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2005 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2004 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2003 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2002 : 01 02 03 04 05 06 07 08 09 10 11 12
2006-01-24
SSL通信へのリダイレクト
1. あるディレクトリ内でSSL通信のみ許可する
SSL通信以外のアクセスの場合,HTTP Error 403 Fobbidenを返す.
.htaccessに以下を記述
2. httpをhttpsへリダイレクト
http://example.com/path/to/ 内から
https://example.com/path/to/ へリダイレクト
3. 特定のファイルのみSSL通信を行わせたい場合
http://example.com/path/to/file.php のみ,
https://example.com/path/to/file.php へリダイレクト
- Reference
yukotan hour: SSL以外で接続させたくないページがあるとき
http://yukotan.blogspot.com/2005/10/ssl.html
SSL通信以外のアクセスの場合,HTTP Error 403 Fobbidenを返す.
.htaccessに以下を記述
SSLRequireSSL
2. httpをhttpsへリダイレクト
http://example.com/path/to/ 内から
https://example.com/path/to/ へリダイレクト
RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/path/to/(.*)?$ https://%{HTTP_HOST}/path/to/$1 [L,R]
3. 特定のファイルのみSSL通信を行わせたい場合
http://example.com/path/to/file.php のみ,
https://example.com/path/to/file.php へリダイレクト
RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/path/to/file.php(.*)?$ https://%{HTTP_HOST}/path/to/file.php [L,R]
- Reference
yukotan hour: SSL以外で接続させたくないページがあるとき
http://yukotan.blogspot.com/2005/10/ssl.html
- 2009 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2008 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2007 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2006 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2005 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2004 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2003 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2002 : 01 02 03 04 05 06 07 08 09 10 11 12
2006-01 /