hello, I want to protect by htaccess/htapsswd one of subfolder on my website. is possible to do it from htaccess file in root directory? Thank you for answer
Hello, You can simply place an .htaccess with the authentication information within the sub-folder to protect it. Is there a specific reason you want to handle this outside of this folder? Regards, Chris
I can't place .htaccess in sub-folder, because in root directory is another .htaccess, .htaccess in sub-folder inherits from .htaccess in root directory, and protection is not working, sub-folder website is not available, because it's not opening window to write login and passowrd
yes you can do it in parent .htaccess like this: <Directory /path/to/protected/> Require user myuser </Directory> Code (markup):
Also, if you want to nest .htaccess and it does not allow it, check if you have "AllowOverride All" in parent .htaccess
Is this correct? <Directory /wp-admin/> Require user yacazg </Directory> But where is path to .htpasswd file?
<Directory /path/to/protected/> Require user myuser </Directory> is making 500 internal servers errors