.htaccess Editor

広告募集中!”

.htaccess 作成

ファイル一覧の拒否

特別な意図がない限り「する」をお勧めします

ベーシック認証

STEP 1 .htpasswdを作成

ユーザ名
パスワード 文字で
 
.htpasswd
.htpasswdというファイルを新たに作成し、出力されたテキストをコピー&ペーストしてください。

STEP 2 .htpasswdまでのサイトパス(例:/home/foo/bar/.htpasswd)

エラーページの設定

URLまたはパスを入力

400 Bad Request
401 Auth Req'd
402 Payment Req'd
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Auth Repid
408 Request Time Out
409 Conficting Request
410 Gone
411 Content Len Req'd
412 Precondition Failed
413 Entity Too Long
414 URI Too Long
500 Int, Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Ver Not Sup...

デフォルトページ

ファイル名を入力(例:index.html)







WWWあり・なし統一

統一後のURLを入力

リダイレクト

Fromにサイトパスを入力、ToにURLを入力

301 Moved Permanently 恒久的に移動

  • From:  To: 
  • From:  To: 
  • From:  To: 

302 Moved Temporarily 一時的に移動

  • From:  To: 
  • From:  To: 
  • From:  To: 

アクセス制限

アクセス許可するアドレスを入力

  • OK: 
  • OK: 
  • OK: 
  • OK: 
  • OK: 
  • OK: 
  • OK: 
  • OK: 

アクセスを拒否するアドレスを入力

  • NG: 
  • NG: 
  • NG: 
  • NG: 
  • NG: 
  • NG: 
  • NG: 
  • NG: 

出力されたテキストをコピーして.htaccessファイルにペーストしてください。