ベーシック認証からリダイレクトの設定まで、オンライン上で手軽に.htaccessファイルの作成ができる便利なサイトのご紹介です。
.htaccess Editor
以下のサイトにアクセスします。.htaccessファイルを簡単作成「.htaccess Editor」
ベーシック認証では「ユーザー名」と「パスワード」、あとは「.htpasswd ファイルまでのフルパス」を入力するだけで、簡単に.htaccessと.htpasswd のソースコードを作成できます。
パスワードはランダムで作成できるので便利です。

WWWあり・なし統一も可能です。

あとは頻繁に使いそうな機能として「301リダイレクト」かな。

ファイル一覧の拒否設定も可能です。

吐き出されたソースをコピペして「htaccess.txt」「htpasswd.txt」などのように一旦保存し、サーバにアアップしてから、それぞれ「.htaccess」と「.htpasswd」にファイル名を変更します。
コメント