Jump to content

htpasswd and Admin CP access error

Featured Replies

Posted

Hello If I protect my AdminCP with htppassw I obtain an 404 error.

Can someone help me identify the problem?

 

404 means not found.

Additionally htaccess with htpasswd is no longer a recommended way to secure your admin panel. The recommended way is to use MFA in:

System > Settings > Two Factor Authentication

  • Author
17 minutes ago, Morrigan said:

404 means not found.

Yes I know, But I don't know why that error occurs.

18 minutes ago, Morrigan said:

System > Settings > Two Factor Authentication

Thank you. I will try it.

I mean I don't know how your .htaccess is setup in that folder or the file its looking for so I, nor anyone else, could actually tell you.

  • Author
7 minutes ago, Morrigan said:

don't know how your .htaccess is setup

I restrict with Cpanel, which automatically creates these lines in htaccess 

AuthType Basic
AuthName "Restricted Area"
AuthUserFile "/home/site/.htpasswds/public_html/admin/passwd"
require valid-user

 

It sounds like its setting it up wrong:

/home/site/.htpasswds/public_html/admin/passwd

Because .htpasswds is a file and can't have subfolders.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.