Got an unauthorized error from htaccess passwords after https redirection implementation. This was an unexpected result, but I guess what happens is that you are redirected to access denied page without getting the password prompt, due to access restriction and redirect simultaneous combination.
Source code viewer
AuthType Basic AuthName "Username and password required" AuthUserFile /my/path/to/.passwd Order Deny,Allow Deny from all Satisfy Any Allow from env=!HTTPS Require valid-userProgramming Language: Apache configuration