• Resolved m ing

    (@ingom)


    Hello,

    I had to move my WP-site to a subfolder. Now I am unable to finish site kit setup. It keeps redirecting to my old URL.

    Please help

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out @ingom, and sorry to hear you’ve been having trouble since moving your site to a subfolder. As some site records may point to your previous set up, please visit your site settings and add an additional character to the site title, such as an underscore (Settings > General > Site Title). You don’t need to make any other changes other than to your site title. This will trigger Site Kit to update your site records.

    Let me know how you get on with the above. If the same occurs, please share the following:

    1. Your Site Health information. You can use this form to share privately if preferred.??
    2. Do you see your old site URL in the address bar? I ask as this may contain a callback URL referencing your old set up. If so, please share the full URL here or in the form above. You can try correcting this address if so.

    Please ask if you have any questions with the above. Thank you!

    Thread Starter m ing

    (@ingom)

    Thank you for your fast reply ??

    Changing the site title didn’t help, so I provided the info you need via form.

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for the update, and for sharing the additional information. From what I can see the callback URL you shared does include site references to your previous set up.

    In order to troubleshoot this further, can you attempt set up once more. When you land on the 404 page please manually add the /web/ path to the callback URL (directly in the browser address bar) before continuing? Let me know if that allows you to proceed. If not, there is another workaround we can try, which involves temporarily reverting to your old site URL.

    Let me know how you get on with the above.

    Thread Starter m ing

    (@ingom)

    Hi James,

    I tried this already several times. I added both /web/ and %2Fweb in the redirect part of the url. It tells me then that the link has expired!?

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for the update @ingom. In that case, what you can try is reverting to your old set up, without the /web path.

    As what I suspect is happening is that Site Kit has been set up previously with this URL you can complete set up once more when your site is not using the /web path, before then resetting Site Kit. After you reset, you can then add the /web path once more.

    Let me know how you get on after trying the above, or ask if you have any questions.

    Thread Starter m ing

    (@ingom)

    Hi James.

    unfortunately I cannot revert to that setup. My situation is that I have one wordpress site living in the root directory and one in that subdirectory web – same domain.

    My initial goal was to run site kit on both, so I installed site kit in the root-wp and after that in the subdir-wp. After I recognized that I cannot run it in both WPs, I did a reset in the root-WP and tried to activate it in the subdir-WP. That was not possible; ending up in this redirect issue.

    How to get out of this? I have access to both WP-sites? Is there a way to run it on both sites? If NO, I’d prefer to run it in the subdirWP.

    thanks

    Plugin Support James Osborne

    (@jamesosborne)

    Hi @ingom,

    Thanks for the update and clarification.

    You can have Site Kit running on a root directory and also on individual WordPress sites within a subdirectory. What I suspect is happening in your case is when you moved your WordPress install for the root directory to a subdirectory it may have been connected and not reset before the move, or some records didn’t update to reflect your new set up.

    To check this further, can you share what happens when you try to install Site Kit on the WordPress site located in your root directory? I checked the site attached to your root, and I didn’t notice Site Kit active. If you can install Site Kit on the root directory, please let me know. In the meantime I’ll request a check of your located in the subdirectory. Unfortunately this isn’t something I can do myself, but hopefully I’ll have an update for you on this in the next few days.

    Thread Starter m ing

    (@ingom)

    Actually I didn’t move the WP-site.

    I first installed it for the root-WP and after that for the subdir-WP.

    Now I’ve installed the plugin again in the root-WP, connect it to google, everything works.

    Then I install it on the subdir-WP, connect to google account, then it tells me that “Site Kit already has some access”, a click on continue takes me to my root-WP installation:

    https://www.XXXXXXX.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.XXXXXXX.com%2Fwp-admin%2Findex.php%3Faction%3Dgooglesitekit_proxy_exchange_site_code%26googlesitekit_code%3Dsitekit-SLYYYYYYYYYY%26googlesitekit_site_code%3D4%YQYQYQYQYQYQYQ%26nonce%3WSWSWSWSWS8%26step%3Dverification&reauth=1

    The “connect to google” – site should send me back to my subdir-WP, but it doesn’t?!?

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for the update @ingom. Correct that you should be redirected to your subdirectory site in this case. While I’m awaiting a site check for your site, can you reset Site Kit your subdomain site now that you’re connected on the parent domain (Tools > Available Tools > Reset Site Kit)? After resetting please try to connect Site Kit once more on this subdomain site.

    I’ll also report back to you here once I test a similar set up to your own.

    Thread Starter m ing

    (@ingom)

    thanks @jamesosborne for your always fast reply ??

    I did a reset on the subdir-site -> same behavior: redirect to root-wp

    BTW: it’s a subdir installation not a subdomain!

    • This reply was modified 1 year, 6 months ago by m ing.
    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update, and appreciate you performing this check.

    BTW: it’s a subdir installation not a subdomain!

    My apologies. I was aware you have a subdirectory setup and I should have mentioned subdirectory as opposed to a subdomain.

    I’m working on a similar setup right now in order to test this. Just to confirm, when you initially had Site Kit set up on the parent domain, did you move this site to a subdirectory by moving the files and correct the site URLs manually (ie. by changing the site and WP address before moving), or did you use a plugin to move the site?

    Note also that I am awaiting a site check for your site, but I will report back to you today on a similar set up to your own. I can see how in some circumstances this redirect could happen. Before moving a site, changing a wp-admin path or performing a URL change Site Kit should ideally be reset. In some cases it’s possible the change doesn’t trigger Site Kit to update all records.

    Plugin Support James Osborne

    (@jamesosborne)

    Just to keep you updated, I tested a similar scenario as your own, with no issues from my setup. Here’s what I did:

    1. I setup Site Kit on the parent domain
    2. I then moved the site to a subdirectory manually. Before doing so I changed the site address and WordPress site address from my WordPress general settings.
    3. When logging into the site on the sub directory, there was no issues with set up on the subdirectory. Site Kit did recognize the URL change and requested I reconnected. After doing so, all worked fine.

    Here’s a recording of my experience.

    After performing the above, I also set up Site Kit on the parent domain, in the root directory. In my case all worked fine, and I also checked to ensure the subdirectory site remained connected. Here’s a recording.

    So to summarize, somehow during your site move or set up on the sub directory site, some of your old site records may have remained. I’ve requested a check of this so as soon as I hear back I’ll let you know. Unfortunately there is no further workaround given the site records may be incorrect on the Site Kit service, and not specifically within your own site.

    Thread Starter m ing

    (@ingom)

    Thanks for your effort to solve this ??

    when you initially had Site Kit set up on the parent domain, did you move this site to a subdirectory by moving the files and correct the site URLs manually

    No, site wasn’t moved. Both sites are live WP instances. One in the root dir and one in subdir on the same webspace/domain. Here’s what I did:

    1. setup Site Kit on root-dir-WP
    2. Connect that to google, gave permission -> Plugin works – Great!
    3. setup Site Kit on subdir WP
    4. Connect that to the same google account -> Bam: redirect to root-dir-WP Issue
    5. Reset Site Kit on root-dir-WP
    6. Try to connect subdir-WP again -> Bam: redirect to root-dir-WP issue
    7. Uninstall plugin on root-dir-WP
    8. Try to connect subdir-WP again -> Bam: redirect to root-dir-WP issue
    9. ….

    Site check for both sites is on the way.

    cheers

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for your patience on this. I was able to recreate the same experience as your own (recording), with the site redirecting me to a 403 “The link you followed has expired.” error page back on the parent domain. I’ll do some further testing on this, as changing the site title didn’t allow me to proceed as you also indicated with your own set up.

    I’ll report back to you here on this at some stage today.

    Plugin Support James Osborne

    (@jamesosborne)

    @ingom Just a quick update on this. I’ve created the following GitHub issue:
    https://github.com/google/site-kit-wp/issues/7055

    So far I’ve been unable to apply a workaround. I will however keep you updated with the check on your site records on the Site Kit service.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Site Kit redirects to old site on setup’ is closed to new replies.