When developing this site, and it’s sister sites ecomsmith.com & gosatchmo.com, I decided to use the new multi-site feature of WordPress 3.0. Everything went great during development.
What I did was to develop using a local address of “blogs.dev” as my base site, and then add all the other sites using the WPMU features. So I had coderseye.blogs.dev and ecomsmith.blogs.dev as well.
All was great, until it came time to make the sites live. I did what I used to do. I dumped all my data from the database, opened it in an editor, and replaced “blogs.dev” with the live domain name that is acting as the master control for this site.
It worked! Sort of. It showed my blogs, but I couldn’t login. WordPress kept complaining about needing cookies enabled. But … but … they are enabled!
Fixing it took a bit of trial and error.The critical change I needed to make was to edit my wp-config.php file and change the line:
define( 'DOMAIN_CURRENT_SITE', 'blogs.dev' );
All I had to do was to update it with the new, live, master control site domain name. That way WP knows which domain to set the cookie for.
It works, and it only cost me about 45 minutes of panicked searching, glad to share.
Related posts:
- WordPress 2 multi-blogging made easy I upgraded the site to Wordpress 2 this morning. This...
- Fixed a WordPress Feedburner Replacement Bug This morning I logged into Feedburner to check my stats....
- Multi-blogging for WordPress update One of the first post on this site was Multi-blogging...
- Howto use Satchmo as an App I'm going to be using Satchmo to power the backend...
- Site goes live! Site officially goes live today....
Recent Comments