Jump to content

Friendly urls is giving me error 404 for admin access


Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

  • 2 years later...

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.*/

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated