How can I protect my webapp build with Codeigniter with a htpasswd during development? I tried this but I get 500 error.
AuthType Basic
AuthName "Authenticate please"
AuthUserFile /usr/html/.htpasswd
Require valid-user
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|files|css|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]