order allow,deny
deny from all
AuthType Basic
AuthUserFile /path/to/.htpasswd
AuthGroupFile /dev/null
AuthName "This is Administrator Area"
require valid-user
yang diatas teh untuk buat file .htaccess
trus jangan lupa buat .htpasswd nya di path yang kita tulis di .htaccess
htpasswd -bc /path/.htpasswd nama_pengguna passwd_pengguna
trus klo muncul 500 internal error server tambah di .htaccess nya :D
ErrorDocument 500 /error.html


