• Resolved g01010

    (@g01010)


    Apologies for the badly written title for this thread – I’m not sure how best to frame the question.

    I have a multisite install using folders not subdomains. So I have mysite.com and mysite.com/test

    I stupidly made the mistake of changing the path for the ‘test’ site to ‘example’ – so that mysite.com/test would become mysite.com/example. The problem is that the pages and posts for /example seem to belong to the root site, as if the ‘example’ site is pulling its data from the wrong part of the database. I would expect it to be pulling post data from wp_2_posts; instead it’s pulling data from wp_posts.

    I can’t see how I’ve managed to do this or, more importantly, how to fix it. I’ve tried changing the path of the site back to mysite.com/test but the problem remains.

    Grateful for a push in the right direction.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter g01010

    (@g01010)

    So, on further analysis, it seems that if I go to mysite.com/test/wp-admin/ I can see on the Dashboard 2 pages when I would expect to see 50 pages. If I click to edit one of the pages, I’m redirected to mysite.com/wp-admin/post.php (not mysite.com/test/wp-admin/post.php).

    So I’m guessing that somewhere WP is redirecting me to the root site.

    Thread Starter g01010

    (@g01010)

    Okay, so I’m thinking about different ways to work around this problem. How does WordPress know which database tables are associated with which blogs?

    Thread Starter g01010

    (@g01010)

    And the answer is… the site was missing a trailing slash

    In the wp_blogs table, I updated the ‘path’ field, adding a slash to the end and all is good now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multisite: changed path and seem to point to wrong content’ is closed to new replies.