# Wordpress error after migration

**URL:** <https://community.auth0.com/t/wordpress-error-after-migration/188859>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [July 7, 2025, 8:41pm UTC](https://community.auth0.com/t/wordpress-error-after-migration/188859 "2025-07-07T20:41:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weesaalcummar](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/weesaalcummar/32/72551_2.png) [@weesaalcummar](https://community.auth0.com/u/weesaalcummar)\
**Post date:** [July 7, 2025, 8:41pm UTC](https://community.auth0.com/t/wordpress-error-after-migration/188859/1 "2025-07-07T20:41:32Z")

</div>

I had auth0 setuped and it was working fine after migrating the server without any change to file or database similar to cloning the server the auth 0 is not working on website. It is giving an error which I am unable to resolve. Can anyone please have a look and help. The error is as below

There was a problem with your log in: Error exchanging code [error code: unknown]  
  
← Login

---

<div class="post-metadata">

**Author:** ![teodor.andrei](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/teodor.andrei/32/75320_2.png) [@teodor.andrei](https://community.auth0.com/u/teodor.andrei)\
**Post date:** [July 8, 2025, 11:50am UTC](https://community.auth0.com/t/wordpress-error-after-migration/188859/2 "2025-07-08T11:50:34Z")

</div>

Hi @weesaalcummar, and welcome to the Auth0 Community!

This error almost always means that the new, cloned server’s URL doesn’t match what Auth0 has on file. When you migrated the server, its address (domain or IP) likely changed, and now Auth0 is rejecting the login attempt as a security measure.

To fix this, you need to update the URLs in your Auth0 Application settings to reflect your new server’s address.

- Go to your [Auth0 Dashboard](https://manage.auth0.com/).
- In the left menu, navigate to **Applications \> Applications**.
- Select the **Application** that is used for your website.
- Go to the **Settings** tab.
- Scroll down to the **Application URIs** section. This is where you need to make the changes.
- **Allowed Callback URLs** : This is the most critical setting. Add the full URL where Auth0 should redirect users _after_ they log in.
- **Allowed Logout URLs** : Add the URL where Auth0 should redirect users _after_ they log out.
- **Allowed Web Origins** : Add the base URL of your new server to this list.
- Scroll to the bottom of the page and click **Save Changes**.

I hope this helps you!

Sincerely,  
Teodor.

---

<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:** [July 22, 2025, 11:51am UTC](https://community.auth0.com/t/wordpress-error-after-migration/188859/3 "2025-07-22T11:51:26Z")

</div>

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