WordPress.org

Ready to get started?Download WordPress

Forums

Integration of multisite login with existing regular no WP site login (6 posts)

  1. Gloak
    Member
    Posted 9 months ago #

    I have an existing site. (sodabrasil.com)

    I have a new WP site, which was a subdomain of that site. (paskin.sodabrasil.com). I have changed it as much as I could to be sodabrasil.com/paskin

    They both have logins.

    I am trying to integrate both of them in a way that when a person logins in one site, the user is also logged in in the other site. It has to work in either direction.

    I have done that in the past, and it worked with single site (subdirectory) + non WP site.

    Now the current WP site is multisite & orginally a subdomain and it has been a challenge.

    Is this possible?

  2. Depends what you want.

    Which site is the multisite? sodabrasil.com? If so, you can make a new subsite called paski2 (yes, I know) and copy paskin into it via the normal WP importer tool. Then rename the FOLDER paskin to paskin-old, and do a search/replace on your DB for the multisite to change paski2 to paskin

    Use https://github.com/interconnectit/Search-Replace-DB for the search/replace

    Also note: The character LENGTH of paskin is important, and that's why it's paski2 and NOT paskin2

  3. Gloak
    Member
    Posted 9 months ago #

    I am sorry if if I was not clear.
    sodabrasil.com regular site NON WP.

    paskin.sodabrasil.com Multisite WP site.

    I have done an integration in the past, but it was a single WP site and it was installed as subdirectory. Paskin was installed as subdomain. I don't know how to change that to sub-directory... I guess that would solve the problem. I changed the tree structure of the directories, moved the folder (subdomain to inside the non WP Site, but id didn't work) as if it were a sub directory. I could access the sites as ..../paskin (and not paskin.site.com).
    But deep inside it was still a subdomain. It didn't work.
    Thank you for any help!!

  4. You want to move a subdomaind network to a subFOLDER network?

    You'll treat that as a real move: https://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite

    And it's going to be extra weird because of the subfolder. I might create a new Multisite in a folder, just to see what the database would be, and use that as a refernce when moving.

  5. Gloak
    Member
    Posted 9 months ago #

    "You want to move a subdomain network to a subFOLDER network"

    Yes, and the main single site (let's just call site.com) will NOT be part of WP.
    The subdirectory (current subdomain) should be a multisite WP.

    The goal:
    site.com/blog

    site.com regular single site no WP.
    /blog (WP multisite).

  6. *points to the 'treat as a real move' answer* Also I suggest getting a lot of booze, cause that's a painful move.

Reply

You must log in to post.

About this Topic