2009-04-05から1日間の記事一覧

.htaccessでアクセス制限

特定のIPのみアクセス拒否 order allow,deny allow from all deny from 123.45.67.89特定のIPのみアクセス許可 order deny,allow deny from all allow from 123.45.67.89IPアドレスだけでなくホスト名でも可 order allow,deny allow from all deny from exam…

.htaccessでリダイレクト

.htaccessファイルに以下を記述 Redirect permanent /secret/ http://xxx/aaa/上記の場合、以下にアクセスすると、、、 http://xxx/secret/index.html ↓こちらにリダイレクトします http://xxx/aaa/index.html

?秒後に別サイトへ遷移

例)1秒後にYahoo!へ遷移 <meta http-equiv="refresh" content="1;url=http://www.yahoo.co.jp/">※0秒指定しても一瞬元の画面は表示されます</meta>