• I have a number of sites on a multi-site set up

    goodblog.com

    my.goodblog.com
    your.goodblog.com
    everyones.goodblog.com

    I want to revert back to a single site, which in itself doesn’t seem to be an issue, but..

    I want to move all the content from these sites onto the main site and then do a redirect for each piece of content to its new location.

    All the sub sites have traffic that I would like to keep after the move so a redirect is vital.

    I expect I will have to do a number of redirects on the .htaccess file for each sub site, as these sites will no longer exist once I revert back to a single site.

    Can somebody please provide me with the best way to do this, thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter danny major

    (@danny-major)

    Those are examples in my post by the way!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I want to move all the content from these sites onto the main site and then do a redirect for each piece of content to its new location.

    Use the default WP export/import feature to move the content

    Then delete the old sites from multisite

    THEN set up .htaccess redirects:

    RewriteCond %{HTTP_HOST} ^(my|your|everyones)\.example\.com [NC]
    RewriteRule ^(.*) http://example.com/$1 [L,R=301]

    You can add as many things as you want to the (my|your|everyones) bit. Separate with |

    Thread Starter danny major

    (@danny-major)

    I’ll put this to the test, just another quick question.

    You say delete the old sites which is fine, but once everything looks ok will I have to change the wp-config file to change the site back to a single site from multi site; and if so; would I have to make any alterations to the redirects after that?

    Thread Starter danny major

    (@danny-major)

    Nope it didn’t work import went fine, sub site deleted but when code above is used get redirected to the disabled sign up page.

    Thread Starter danny major

    (@danny-major)

    I have entered the following code into the wp-config:

    define( ‘NOBLOGREDIRECT’, ‘http://mydomain.com/’ );

    which works to a degree, unfortunately everything gets redirected to the domain home page.

    I need all the imported posts and pages to be the destination of the redirects.

    Leaj Inarry

    (@leaj-inarry)

    I have been looking for some help as I want to move one domain to another, so far I have found a good tutorial here that I’m studying at the moment. I would like to know if I need to also do anything with the .Htaccess file?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Multisite Back to Single site redirects’ is closed to new replies.