plusplushosting Posted June 3, 2017 Share Posted June 3, 2017 Well....as it say in the subject...was working ok yesterday, nothing was changed unless any cron is doing something, today im getting error 404 when i try to access admin, client side is working ok. Tried to remove the htaccess but is not fixing it. Any idea if this is a bug? i seed a bug in 7.2.1 but sounds unrelated to the admin area access. Thanx in advance! 0 Quote Link to comment Share on other sites More sharing options...
plusplushosting Posted June 3, 2017 Author Share Posted June 3, 2017 ok, found the problem, if you have the admin directory protected with htaccess user/pass then is happening...now the question is, how i can protect it with htaccess user/pass and avoid the 404 error? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 3, 2017 Share Posted June 3, 2017 ok, found the problem, if you have the admin directory protected with htaccess user/pass then is happening...now the question is, how i can protect it with htaccess user/pass and avoid the 404 error? if you're sure that's the cause, then submit a bug report - if it's a bug that can fixed with a hotfix (e.g only a few files need changing), they may be able to release it quicker. 0 Quote Link to comment Share on other sites More sharing options...
jmginer Posted July 22, 2017 Share Posted July 22, 2017 We have the same issue. If we remove the directory protection in cPanel, it run ok. But when we enable, the admin page return 404 error 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted July 27, 2017 Share Posted July 27, 2017 Hi Everyone, I've been able to replicate this issue in my own installation and accordingly have raised a case with the development team under the ID CORE-11496 as always we will post to changelog.whmcs.com once a fix is released for this I'll also ensure that we provide an update on the forums. 0 Quote Link to comment Share on other sites More sharing options...
AffordableDomainsCanada Posted July 27, 2017 Share Posted July 27, 2017 We have been noticing this same issue, ive been removing hooks and modules over the past 48 hours trying to figure out what ive changed as there are no errors being logged in the activity log. Glad this probably is not something I did.. 0 Quote Link to comment Share on other sites More sharing options...
EdTech Posted November 15, 2019 Share Posted November 15, 2019 This is an old topic, but I couldn't find the answer anywhere, however, I found the solution! This happens when you want to add extra security to the admin area in WHMCS, and you implement "password protection" to the "admin" folder, so whenever you try to access the admin area you end up getting a 404 error. The error message is misleading, and it has nothing to do with that folder. The fact is that you are missing the configuration to handle the "401" Errors, but at the root level, so the fix is simple: 1) Just add the following line to your .htaccess file at the root level (usually /home/yourdomain/public_html/.htaccess) ErrorDocument 401 /401.html 2) Create the /401.html file (644 permissions), also at the root level (usually /home/yourdomain/public_html/401.html) with the following contents: Unauthorized That's it. You can create a more elaborated 401.html file, but for the folder protection functionality, it is more than enough. Good luck everyone. EdTech https://www.netlinecorp.com http://tipstricksandmore.*/ 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.