Title: Unknown Error (code: &#8216;redirect_uri&#8217; mismatch)
Last modified: October 13, 2020

---

# Unknown Error (code: ‘redirect_uri’ mismatch)

 *  Resolved [amitpant](https://wordpress.org/support/users/amitpant/)
 * (@amitpant)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/)
 * Hi
    I recently moved to a new domain and when i am trying to connect with google
   site kit its returning an error showing (code: ‘redirect_uri’ mismatch). To fix
   this, redo the plugin setup.
 * I have tried to connect by reinstalling the plugin but not working
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funknown-error-code-redirect_uri-mismatch-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/page/2/?output_format=md)

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13527020)
 * Thanks for reaching out, hopefully we can assist. I can see that your non secure
   website (http) is accessible. Can you place a redirect so that all traffic is
   secure (https)? You should be able to do this from your hosting control panel,
   or alternatively you can use a plugin.
 * After doing so please attempt Site Kit setup once more. If you encounter the 
   same issue please share your Site Health information privately using [this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
   and we can troubleshoot further.
 *  Thread Starter [amitpant](https://wordpress.org/support/users/amitpant/)
 * (@amitpant)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13536386)
 * Hi
    I have redirect all http traffic to https and tried to reset Google site 
   kit but the problem is still the same
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13537572)
 * Great, now that you have redirection in place please follow the steps below and
   inform me if you’re able to get successfully connected.
    1. Temporarily switch your “WordPress Address (URL)” and “Site Address (URL)” from`
       https://knownepal.net` to `http://www.knownepal.net` in your WordPress [General Settings](https://i.imgur.com/MkFLF0E.png)
       configuration.
    2. Log back into your site once requested and then undo the changes you made (reverting
       back to the full address with https
    3. Open a browser [incognito](https://i.imgur.com/ALzgiHp.png) window
    4. Attempt setup once more
 * Please let me know if that works for you.
 *  Thread Starter [amitpant](https://wordpress.org/support/users/amitpant/)
 * (@amitpant)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13545551)
 * I did exactly same but it ain’t working.The error is same
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13552940)
 * Sorry to hear that. Please share your Site Health information privately using
   [this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
   and we can investigate this further.
 * Edit: I can see you’ve provided your Site Health information. Please allow me
   some time to check with the team on your current setup.
    -  This reply was modified 5 years, 7 months ago by [James Osborne](https://wordpress.org/support/users/jamesosborne/).
 *  Thread Starter [amitpant](https://wordpress.org/support/users/amitpant/)
 * (@amitpant)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13561785)
 * I have already submitted that form as you have mentioned it already in your above
   reply.
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13564333)
 * [@amitpant](https://wordpress.org/support/users/amitpant/) thank you for providing
   that information!
 * Could you confirm if your WordPress Dashboard is located at wp-admin? If not,
   could you provide us the correct path where it is located?
 * Please feel free to re-submit [the form](https://forms.gle/a8Z55hDj6kudvfZr5)
   with this information in the _Any other supporting information_ field.
 *  Thread Starter [amitpant](https://wordpress.org/support/users/amitpant/)
 * (@amitpant)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13565841)
 * I changed the access URL of WordPress dashboard to wpamit a few days before my
   site migration to a new domain. It was working fine until the domain change.
 * Also, I have resubmitted the form.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13566725)
 * Thanks for sharing. We’ll check your site setup with the team once again and 
   report back to you here with any updates. Thanks for your patience on this.
 *  Thread Starter [amitpant](https://wordpress.org/support/users/amitpant/)
 * (@amitpant)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13580209)
 * Hi,
 * Is there any progress on the issue? I tried every possible way but it’s not working.
 * When I delete the plugin it’s showing
 * Connect your Google account to Site Kit
    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.
 * Help us improve the Site Kit plugin by allowing tracking of anonymous usage stats.
   All data are treated in accordance with Google Privacy Policy
 * Sign in with google
 * Rather than configure site kit by google.I think the data related to site kit
   are stored somewhere and it’s regaining it when I reinstall and causing errors.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13580475)
 * Apologies for the delayed update, and thanks for the update. It sounds like you’re
   encountering a different issue at present. When you access [this link](http://search.google.com/search-console?utm_source=about-page&resource_id=https://www.knownepal.net/)
   from a browser while logged into the same Google account you used to setup Site
   Kit can you confirm you have access?
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13616455)
 * [@amitpant](https://wordpress.org/support/users/amitpant/) I’m following up on
   your topic. I notice tracking scripts from Site Kit are present on the site.
 * Have you been able to connect Site Kit since or are you still encountering the
   error?
 *  Thread Starter [amitpant](https://wordpress.org/support/users/amitpant/)
 * (@amitpant)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13618868)
 * Hi
 * Intialy my website was at [this address](https://www.knownepal.online/) and then
   in moved to [Knownepal.net](https://www.knownepal.net/) before i moved the site
   kit was fine but when i tried to configure sitekit after moving to the new address
   it started encountring issues.
 * I am still encountering the same error.
 * I did a little experiment by trying to install Sitekit on a subdomain to the 
   same site and it worked well. So I think there is a problem somewhere in my database
   regarding site kit. can you tell me the name of database tables created by sitekit.
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13621937)
 * [@amitpant](https://wordpress.org/support/users/amitpant/) thanks so much for
   the update!
 * We actually think the issue is with what the Site Kit service has stored for 
   the WP admin dashboard URL (at the end of the setup process you are redirected
   to the dashboard and if it doesn’t match this error can occur). I know you provided
   wpamit, but we’re seeing some inconsistencies when we visit [https://www.knownepal.net/wpamit](https://www.knownepal.net/wpamit)(
   there is a redirection).
 * Sorry ask again, but could you confirm that your WP dashboard is located at [https://www.knownepal.net/wpamit](https://www.knownepal.net/wpamit)
   and there aren’t any other subdirectories we should be mindful of? We can then
   update from our side.
 * We’ll be [working on a fix](https://github.com/google/site-kit-wp/issues/2277)
   that will be mindful of changes to the admin URL to prevent this error in the
   future.
 *  Thread Starter [amitpant](https://wordpress.org/support/users/amitpant/)
 * (@amitpant)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/#post-13623081)
 * I have changed the WordPress access URLs to it’s default address and tried to
   setup Sitekit but it redirects the same error.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/page/2/?output_format=md)

The topic ‘Unknown 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/)

 * 21 replies
 * 3 participants
 * Last reply from: [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/unknown-error-code-redirect_uri-mismatch-2/page/2/#post-13650266)
 * Status: resolved