Htpasswd + htaccess 404 error

Hi, I was thinking of protecting librenms with htpasswd.

The htpasswd works fine, but once I authenticate successfully, librenms /login is a 404.
Librenms worked fine prior to using htpasswd

Based on other SO posts, I’ve added “ErrorDocument 401 /401.html” but it doesn’t change anything obviously.

Anybody encountered this issue at all?

Thanks
Regards