I'm familiar with password protecting files and directories using apache authentication. I am working on a site where I have two WordPress installs on the same domain. One WP install is in the root /public_html/ another one is in a sub directory. We do NOT want to merge the user database this is why we are using separate WP installs.
The issue is I want to password protect wp-login.php file on the main install, but not on the sub directory install.
I went ahead and added the following code to my .htaccess file in my public_html directory.
AuthName "Admins Only"
The issue is that this code blocks it for both the main WP site and the sub directory wp-login.php file.
I was hoping if there is a way that I can add in my /folder/.htaccess which will keep the other WP install open for login by anyone.
Let me know