WordPress.org

Ready to get started?Download WordPress

Forums

Trouble converting single site to multisite -> phantom redirects (8 posts)

  1. lightnb
    Member
    Posted 1 year ago #

    I'm trying to convert a single site at /myblog to multisite where /myblog becomes a virtual folder and /wordpress becomes the actual folder for the install. I'm having issues with old URLs getting redirected to, even though they aren't mentioned in my wp-config file.

    History:

    An older version of WordPress 2.x was installed on old-domain.com/myblog. 1 year ago, we moved to new-domain.com, and the WordPress site moved with it, to new-domain.com/myblog. This worked fine.

    Today, I updated to the latest WordPress version (3.4.2). I copied the /myblog folder to a folder /wordpress and did the update against the /wordpress folder. The /myblog folder was removed. I was able to access a single site version of WordPress at /wordpress as expected.

    Next, I enabled multisite by adding define('WP_ALLOW_MULTISITE', true); to my wp-config.php. I logged in and enabled multi-site from the admin panel. It gave instructions on how to update wp-config.php, create the blogs.dir directory, and update rewrite rules. I followed all the steps.

    Now I get the following:

    new-domain.com/myblog -> Apache 404 (expected for now)
    new-domain.com/wordpress -> WordPress 404 - "Fancy meeting you"
    new-domain.com/wordpress/wp-admin/ -> redirects to https://OLD-DOMAIN/myblog/wp-login.php -> Apache 404.

    Neither "old-domain.com" nor "myblog" are in the wp-config file. They aren't in my vhost as redirects either. Maybe they're stuck in the database somewhere?

    Intended outcome:

    new-domain.com/myblog -> virtual folder for blog 1
    new-domain.com/myblog2 -> virtual folder for blog 2
    new-domain.com/wordpress -> just a folder / no blog here.

    Any ideas on how to get that old-domain.com domain out of the database and proceed with setting this up?

    Thanks,
    Nick

  2. lightnb
    Member
    Posted 1 year ago #

    OK, I found "siteurl" and "home" options in the options table in the database and corrected them to my main site. I'm now able to login. I'll post back if/when I get sites working.

  3. lightnb
    Member
    Posted 1 year ago #

    OK, I'm running into some issues.

    1. I'm trying to create a blog at the URL new-domain.com/blog/. When I use "blog" as the slug, I get:

    "The following words are reserved for use by WordPress functions and cannot be used as blog names: page, comments, blog, files, feed".

    That's nice, but I insist on http://www.domain.com/blog/ being the path to my blog. So, put dummy text here in the form and replace it in the database?

    2. My custom theme which is in the wp-content/themes directory is not showing up in the control panel. The other themes show up and I can download new themes and they show up. Are there compatibility difference between v 2.x and 3.4?

    3. My existing blog posts, etc are attached to the /wordpress instance. I need to move them all to the /myblog2 instance. /wordpress should be an empty dummy. I can't seem to rename /wordpress in the admin because its the default. So how do I get all of the contents from the original single blog into a non-default instance with a multi blog?

  4. 1. Eeeeeeee. You sure? I mean, if you make posts in domain.com, they're gonna have /blog/ anyway. So:

    domain.com new post: domain.com/blog/2012/postname
    domain.com page: domain.com/pagename

    Is that good enough?

    2. Gobs. Miles. A lot.

    3. You would have to export the content from /wordpress and import into /myblog2

  5. lightnb
    Member
    Posted 1 year ago #

    1. The root, http://www.domain.com/ is not a wordpress site nor powered by wordpress. So we would have:

    http://www.domain.com/blog -> WP multisite 1
    http://www.domain.com/blog/name-of-post
    http://www.domain.com/blog2 -> WP multisite 2
    http://www.domain.com/blog2/name-of-post
    http://www.domain.com/forum/ -> a forum like PHPBB
    http://www.domain.com/ -> A stand-alone home page

    2. Is there a resource for the changes that need to be made to make old themes work? Bare minimum, if I don't care about new features.

    3. From the WP admin or in the database?

  6. lightnb
    Member
    Posted 1 year ago #

    OK, for other people having issues with themes not appearing when using multi-site: First, you have to go to My sites (at the top left) -> network admin -> Dashboard. Then choose the "themes" tab on the left. All your themes should appear here. Check the themes you want available to your network of sites, then in bulk actions, choose "network enable". Now when you go into a site to set the theme, the theme should now appear.

  7. lightnb
    Member
    Posted 1 year ago #

    To move content from the main site to another multi site:

    1. Download the WP importer from here: http://wordpress.org/extend/plugins/wordpress-importer/ and copy to your plug-ins directory.
    2. Go to the main site in your WP admin panel, adn go to the plugins tab.
    3. Find the importer plug and click network activate.
    4. Switch to the site you want to export then choose tools, export. Save the file to your computer.
    5. Switch to the site you want to import to. Choose tools -> import -> WordPress. Select your xml file from your computer. Map authors when promoted.

  8. WordPress won't work like that.

    If you want to have domain.com/sitename then you must install WordPress in domain.com/

    Even if you did the 'giving WP it's own directory' trick (which works in 3.5 yay!), the main site would still be domain.com/ which you don't want.

    (You got the 'how do I move?' question right, and the theme answer I don't know, it's been a long time since we moved to 3.x, you may need to ask in the themes section)

Topic Closed

This topic has been closed to new replies.

About this Topic