One of my best practices is to ensure that regardless of where my work is hosted that it will just work out-of-the-box. So I recently password protected a directory however I'm having difficulty figuring out how to set the path to be the same directory.
So in the .htaccess file I've tried two paths and got the following error paths in Apache's error log...
AuthUserFile /.htpasswd
C:/.htpasswd
AuthUserFile .htpasswd
C:/MEDIA/INTERNET/XAMPP/apache/
I don't want to set a static path as I want to use the exact same .htaccess file both both the local and live version. If I keep two versions it'll complicate already complicated work and I don't wish to run the risk of irking off my clients.
Also I've tried putting the password file in the directory above the live root (in the FTP root) for security purposes and receive the same errors minus one directory path.
Thoughts please?
- John