Jump to content

Admin area access, 2FA and ERR_TOO_MANY_REDIRECTS


Remitur

Recommended Posts

I have 2FA enabled on admin area access (Duo Security)
For existing administrators, everything is working fine.

But If I add a new administrator, the first time he tries to login (and that will be forced to configure 2FA), at  www.mydomain.com/admin/myaccount.php?2faenforce=1 I get the error message: 

This page isn’t working domainregister.international redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS 

(yet tried, of course, cookies clearing... it's useless, I get this error on different PCs too)

Any idea on any way to investigate such an issue?!? 😞

 

 

Link to comment
Share on other sites

1 minute ago, Remitur said:

Any idea on any way to investigate such an issue?!?

any chance that its being caused by .htaccess ?

https://help.whmcs.com/m/troubleshooting/l/802231-troubleshooting-a-redirect-loop

Quote

Redirect loops can be caused by .htaccess files which make use of an Apache mod called mod_rewrite. This is most commonly used for redirecting pages, creating human and search-engine-friendly URLs, and forcing pages to be loaded over a different protocol.

Link to comment
Share on other sites

1 hour ago, brian! said:

any chance that its being caused by .htaccess ?

 

Rewrite are enabled just:

- from http to https

-and from www. to not-www.

 

RewriteEngine On

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

RewriteCond %{HTTPS_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

Everything seems right to me... are not able to understand what is not running right... 😕

Link to comment
Share on other sites

Fixed.
The issue: for security reasons, .htaccess was no writeable by WHMCS, so in it there were the old rules but not the new rules created by WHMCS 7.2

I guess that also a strange, different issue I fixed with a workaround few weeks ago may be related to this...

But during update process found any alert, warning or error about... 😕
All is well etc. etc.

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