# Wordpress - Redirect loop on successful sign-in

**URL:** <https://community.auth0.com/t/wordpress-redirect-loop-on-successful-sign-in/58001>\
**Category:** Get Help\
**Tags:** wordpress-auth0\
**Created:** [February 17, 2021, 10:40am UTC](https://community.auth0.com/t/wordpress-redirect-loop-on-successful-sign-in/58001 "2021-02-17T10:40:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![martincl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/martincl/32/13714_2.png) [@martincl](https://community.auth0.com/u/martincl)\
**Post date:** [February 17, 2021, 10:40am UTC](https://community.auth0.com/t/wordpress-redirect-loop-on-successful-sign-in/58001/1 "2021-02-17T10:40:40Z")

</div>

Hello,

After sign-in, and from the Auth0 logs we can see that the sign-in itself is successful, a redirect loop begins, cycling through the callback (index.php?auth0=) \> wp-login.php \> authorize (at the Auth0 tenant).

The Auth0 logs show no errors, nor do the Wordpress logs. Someone else had this same issue in 2019 (link below), but as often happens, they never followed up or posted a solution. We have generated the HAR file if there is someone from Auth0 who could have a look for me.

> [@Wordpress too many redirects](https://community.auth0.com/t/wordpress-too-many-redirects/34330):
>
> Hey all, We’ve been having this strange issue to many redirects when we log in using auth0 (google auth or password). When we log in using a wordpress account everything works as it should. Only when we use auth0 login we are having this issue and this is not happening all the times but it is frequent. The login it’s elf is successful but will hang at redirection with to many redirect message, when we open a new tab for the website, the user has successfully logged in. I’ve checked the Wor…

Many thanks,

Martin

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [February 18, 2021, 3:48pm UTC](https://community.auth0.com/t/wordpress-redirect-loop-on-successful-sign-in/58001/3 "2021-02-18T15:48:14Z")

</div>

Hi @martincl,

Welcome to the Community!

Would you mind messaging me the HAR file so I can investigate this? Thanks!

---

<div class="post-metadata">

**Author:** ![martincl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/martincl/32/13714_2.png) [@martincl](https://community.auth0.com/u/martincl)\
**Post date:** [February 19, 2021, 9:57am UTC](https://community.auth0.com/t/wordpress-redirect-loop-on-successful-sign-in/58001/4 "2021-02-19T09:57:31Z")

</div>

Thank-you @stephanie.chamblee - I’ve messaged you the HAR file.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [February 19, 2021, 3:22pm UTC](https://community.auth0.com/t/wordpress-redirect-loop-on-successful-sign-in/58001/5 "2021-02-19T15:22:49Z")

</div>

Thank you @martincl, I am taking a look at this now.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [February 19, 2021, 3:33pm UTC](https://community.auth0.com/t/wordpress-redirect-loop-on-successful-sign-in/58001/6 "2021-02-19T15:33:01Z")

</div>

Are you using any plugins that might affect the login flow by chance such as “Restricted Site Access”?

I’m wondering if this could be related to this topic: [Loop on WordPress Login with Auth0 Plugin - #6 by josh.cunningham](https://community.auth0.com/t/loop-on-wordpress-login-with-auth0-plugin/15603/6)

---

<div class="post-metadata">

**Author:** ![martincl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/martincl/32/13714_2.png) [@martincl](https://community.auth0.com/u/martincl)\
**Post date:** [February 26, 2021, 4:11pm UTC](https://community.auth0.com/t/wordpress-redirect-loop-on-successful-sign-in/58001/7 "2021-02-26T16:11:32Z")

</div>

Thank-you for your help - you pointed us in the right direction. One of our own plugins forced sign-in across the whole site and this was causing the loop.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [February 26, 2021, 4:14pm UTC](https://community.auth0.com/t/wordpress-redirect-loop-on-successful-sign-in/58001/8 "2021-02-26T16:14:25Z")

</div>

I’m glad you were able to find the cause of the loop!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 13, 2021, 4:15pm UTC](https://community.auth0.com/t/wordpress-redirect-loop-on-successful-sign-in/58001/9 "2021-03-13T16:15:01Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
