Using .htaccess

I need to demonstrate my system to a customer from the Internet. So I can make changes easily I want to access my Scriptcase development system remotely. Although I have strengthened the log-in password I thought I would make the login even more secure by creating an Apache password using htpasswd and adding an .htaccess file with the following in:

AuthType Basic
AuthName “Restricted Access Authorised Users Only”
AuthUserFile /etc/apache2/.htpasswd
Require valid-user

The problem is that, no matter where I add this file, Apache seems to ignore it. Is there some reason that .htaccess will not work in the development environment?

Drop your project in a “blind” folder on your web server; a new folder with no reference links or metadata references to it on your searchable site.

Webcrawlers can’t crawl what isn’t linked. Or, at least, they shouldn’t be able to.

Example:
Create a new non-obvious folder e.g., /var/www/html/demo_2018_10 and deploy your project in that folder.

Email a direct link to your client e.g., https://myserver.com/demo_2018_10/login. (Assumes your initial app is an app called “login”)

They should be able to play with it, share it with others, etc. but it shouldn’t show up on Google searches.