Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


David Scanu
David Scanu
20,160 Points

Moving a Site from WordPress Multisite to Single Install

I was wondering how to move a website from a Wordpress Multisite to a self-hosted install. I kept digging into the internet and finally found the solution, so I decided to edit my post and share with yall.

Here is a Great article on how to do it : http://www.wpbeginner.com/wp-tutorials/how-to-move-a-site-from-wordpress-multisite-to-single-install/

The tricky thing is that you can import/export as with a regular wordpress site but you can not duplicate the database in order to duplicate the settings. So beside copying all the plugins and themes files. You have to manualy adjust all the settings to get the exact same settings as your old multisite.

I was wondering about what would happen to the old URL and foudn this great solution :

Redirecting From Subdomain to New Domain For subdomain installs, you need to use this code in the .htaccess file of your WordPress multisite.

Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^subdomain.example.com$ [NC] RewriteRule ^(.*)$ http://www.example.net/$1 [L,R=301]

It works great : now, anybody typing the old URL "subdomain.example.com" is redirected to "www.example.net". It is important to set the exact same permalink structure on both sites.

Now I have a single install wordpress site and I don't think SEO will be affected that much because the content is the exact same. And the old URL redirect straight on to the new site (with the exact same content).

Every link I could find in http://djfreshd.fr directs to the correct domain.

David Scanu
David Scanu
20,160 Points

Yes. I edited my post because I found a great redirection solution.

I edited the .htaccess file of the old multisite and now every links redirect to the new site.

Cool. You can check your root index.php file and look for this code


        require( dirname( __FILE__ ) . '/wp-blog-header.php' );


and depending on where the file is located that's where all the links and templates and everything will be fetched from. I'm not 100% about this though, I've had some issues in the past where this has been the problem, might work for you too.