Support » Multisite » [Resolved] Path_Current_Site Problem?

[Resolved] Path_Current_Site Problem?

  • I set up a multisite on a temp url on a VPS a few months ago. The url looked like this:

    When I switched it to the new URL this weekend the name changed to mxcc.edu but the /~mxcced5/. I was able fix this on the main site but my sub sites still need the ~mxcced5 to function. Example mxcc.edu/~mxcced5/catalog (I can get to it from mxcc.edu/catalog but that’s because I set up a redirect). Whenever i try to set up a new site it has the mxcc.edu/~mxcced5/newsite path going on. They should just be mxcc.edu/newsite.

    I would just get rid of the multisite all together but I’m using different plugins and themes on different sites so it makes sense to keep the multisite going.

    This is what my wp-config file looks like after the migration:
    define( ‘WP_ALLOW_MULTISITE’, true );

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘www.mxcc.edu’);
    define(‘PATH_CURRENT_SITE’, ‘/~mxcced5/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    I’ve tried switching define(‘PATH_CURRENT_SITE’, to ‘/’ or leaving it blank or taking it out altogether but (not surprisingly) that just gives an error connecting to database when I go to the main site. I’m not sure where to go or what to do. Does anyone have any suggestions? I’d really appreciate that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • How did you change the domain in the database?

    I used this script as per recommended by the WP codex for moving multisites:

    The first time I did a search and replace for http://vps11639.inmotionhosting.com/~mxcced5/ but that messed everything up so I reverted to my saved db and did a search and replace just for http://vps11639.inmotionhosting.com/

    After that everything needed the /~mxcced5/ after it and I magically did something I don’t remember to make it work without it for the main site but I’m pretty sure it was just a poorly executed hack that only put a bandaid on the problem. I think maybe I went into the wp_options table for the main site and took out the /~mxcced5/ from site name and home but when I tried that for other sites I just got a 404 error page.


    So I think I solved it last night. I changed the code in wp-config and .htaccess to the updated paths and then had to go into the wp_blogs table in my database and change the path there as well. Only when all of those things were done correctly did it work.



    hello ypage621!

    i know this topic is untouched for several month now, i just found it during my research and i have exactly the same problem you described above!
    I’ve been researching it on the web and posting the issue in several forums for 3 days now, but no help so far.
    So frustrating 🙁

    So i’m wondering if you could explain to me what exactly you did to fix the problem? What do you mean by ” I changed the code in wp-config and .htaccess to the updated paths and then had to go into the wp_blogs table in my database and change the path there as well.”

    Thanks a lot for your help and time, its really really appreciated!

    Cheers, Aileen

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Path_Current_Site Problem?’ is closed to new replies.