Title: Issue: Error (code: ‘redirect_uri’ mismatch)
Last modified: November 13, 2020

---

# Issue: Error (code: ‘redirect_uri’ mismatch)

 *  Resolved [ligonier816](https://wordpress.org/support/users/ligonier816/)
 * (@ligonier816)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/)
 * I migrated a site from a staging site to live site and the Site Kit plugin redirects
   me to the old site after I go through the verification process during setup. 
   Is there any way to reset my site on the Site Kit authentication service (referring
   to post [https://wordpress.org/support/topic/error-code-redirect_uri-mismatch/#post-13654994](https://wordpress.org/support/topic/error-code-redirect_uri-mismatch/#post-13654994))?
 * old site:
    matthewf29.sg-host.com
 * new site:
    headspace.media
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fissue-error-code-redirect_uri-mismatch%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13660585)
 * [@ligonier816](https://wordpress.org/support/users/ligonier816/) thanks for reaching
   out!
 * A few questions to help us troubleshoot further:
 * 1) When you migrated the site from staging to live, was the site in staging actively
   connected to Site Kit at the time?
 * 2) Could you send us your [Site Health information](https://i.imgur.com/Rtkmsba.png)
   through [this form](https://forms.gle/i6LRMiN7NSY999vX7)?
 *  Thread Starter [ligonier816](https://wordpress.org/support/users/ligonier816/)
 * (@ligonier816)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13660614)
 * 1. Yes, the staging site was connected to Site Kit before migrating.
 * 2. Site Health Information has been submitted.
 * When I go to the Site Kit Dashboard on the live site, I see the option to sign
   in and this text above the sign-in button:
 * “Site Kit has already been configured by another admin of this site. To use Site
   Kit as well, sign in with your Google account which has access to Google services
   for this site (e.g. Google Analytics). Once you complete the 3 setup steps, you’ll
   see stats from all activated Google products.”
 * However, there are no other admins on the live site. When I click the sign in
   button, I can connect with my google account but at the last screen it redirects
   me to the staging site (which no longer exists), not the live site.
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13660636)
 * [@ligonier816](https://wordpress.org/support/users/ligonier816/) thanks for the
   additional details!
 * We’ll need to confer with the team to assist further. However, could you confirm
   if your WordPress dashboard is located at [https://headspace.media/wp-admin](https://headspace.media/wp-admin)
   or another location?
 *  Thread Starter [ligonier816](https://wordpress.org/support/users/ligonier816/)
 * (@ligonier816)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13660690)
 * Ok. Yes, the dashboard is located there.
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13669558)
 * [@ligonier816](https://wordpress.org/support/users/ligonier816/) thanks for the
   confirmation.
 * Could you try this workaround that may help update the Site Kit service? Let 
   us know if you are able to proceed without the error:
 * – In your WordPress site settings (under _Settings > General_), change the values
   for the **WordPress Address ** and **Site Address** to `http://` from `https://`
   –
   You may be prompted to log back into WordPress. Log back in and then change the
   values back to `https://` from `http://` – Attempt the Site Kit setup again
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13675667)
 * [@ligonier816](https://wordpress.org/support/users/ligonier816/) we’re looking
   at a solution, but could not spot the record for the previous URL on the service.
 * Could you confirm the full URL including protocol for matthewf29.sg-host.com ?
 * Also, were you using your host’s provided staging mechanism or did you stage 
   and migrate to live some other way (manually, with another plugin)?
 *  Thread Starter [ligonier816](https://wordpress.org/support/users/ligonier816/)
 * (@ligonier816)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13675873)
 * I changed the site address then changed it back and there was no change.
 * The previous URL was [http://matthewf29.sg-host.com](http://matthewf29.sg-host.com)
 * I did not use a staging mechanism. I cloned a live site to another live site 
   using ManageWP.com
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13690562)
 * [@ligonier816](https://wordpress.org/support/users/ligonier816/) just providing
   a follow up that we’re still looking into the particular issue on your site.
 * We’re also working on a way to prevent this issue in the plugin ([Github issue](https://github.com/google/site-kit-wp/issues/2383)).
 * Thanks for your patience and we’ll follow up as soon as we have more information.
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13705295)
 * [@ligonier816](https://wordpress.org/support/users/ligonier816/) we’ve made some
   adjustments. Could you try the setup process once more and let us know if you
   are able to proceed?
 *  Thread Starter [ligonier816](https://wordpress.org/support/users/ligonier816/)
 * (@ligonier816)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13705319)
 * I just deactivated and deleted the plugin. Then I logged into my WordPress dashboard
   for Headspace.media in a chrome incognito window. There I installed the plugin
   and started the setup process.
 * The setup process worked properly. I was not redirected to the old site. Thank
   you for you help resolving this issue.
 * Matt
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13709210)
 * [@ligonier816](https://wordpress.org/support/users/ligonier816/) thanks for the
   update and I’m glad you were able to complete the process!
 * If you have a chance, feel free to [leave a review](https://wordpress.org/support/plugin/google-site-kit/reviews/#new-post)
   about your experience with Site Kit.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Issue: Error (code: ‘redirect_uri’ mismatch)’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/issue-error-code-redirect_uri-mismatch/#post-13709210)
 * Status: resolved