Hello, sorry how i protect /admin folder except the subfolder /admin/articles This htaccess code in /admin not work correctly: AuthType Basic AuthName "Panel admin" AuthUserFile "/path/.htpasswds/public_html/admin/passwd" require valid-user <Directory /admin/articles/> Order Deny,Allow Allow from all </Directory> I await your news, thanks
Try to setup SetEnvIf Code: SetEnvIf Request_URI "(/directory/subdir/)$" allow SetEnvIf Request_URI "(dir/file\.php)$" allow Order allow,deny Allow from env=allow Satisfy any