$ htpasswd -c /www/domain.com/.htpasswd yourusernameAfter running the command it will ask for your password.
AuthName "Login" AuthUserFile /www/domain.com/.htpasswd AuthGroupFile /dev/null AuthType Basic < LIMIT GET POST > require valid-user < /LIMIT >Now save .htaccess and try running the page, that's it! web