Hello,
I've been advised to add extra security to the root directory of my development subdomains (test sites) to prevent search engines from indexing these pages. Unfortunately, some development pages occasionally appear in search results.
Apparently, simply using noindex,nofollow meta tags isn't sufficient.
Question:
If I use an .htpasswd file at the root of the development site for password protection, do I still need AdminTools?
Here's what I did:
- I accessed to .htaccess file.
- I added the following lines:
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /home/User/PathToYourFolder/.htpasswdd
Require valid-user
Note: I replaced "User" and "PathToYourFolder" with my actual username and the path to the folder containing my .htpasswd file.
- I created an .htpasswd file.
- I used a tool like https://www.web2generators.com/apache-tools/htpasswd-generator to generate a username and password.
- I copied the generated code into my .htpasswd file.
While this approach works for most sites, it seems to conflict with .htaccess AdminTools file on some installations. Apparently, there might be a setting in AdminTools that prevents the .htpasswd file from functioning.
If using AdminTools offers additional benefits for development site security, I'd appreciate it if you could explain which option might be interfering with the .htpasswd file.
Many thanks,
Lorenzo