<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Sumit Chachra&#039;s Blog &#187; blogging</title> <atom:link href="http://blog.chachra.us/category/blogging/feed/" rel="self" type="application/rss+xml" /><link>http://blog.chachra.us</link> <description>Tivix, Technology, Django, Startups, Social Media</description> <lastBuildDate>Wed, 08 Sep 2010 07:15:12 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Moving Wordpress mu to a different domain</title><link>http://blog.chachra.us/2010/03/04/moving-wordpress-mu-to-a-different-domain/</link> <comments>http://blog.chachra.us/2010/03/04/moving-wordpress-mu-to-a-different-domain/#comments</comments> <pubDate>Thu, 04 Mar 2010 21:46:12 +0000</pubDate> <dc:creator>Sumit Chachra</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[blogging]]></category> <category><![CDATA[blogs]]></category> <category><![CDATA[Django]]></category> <category><![CDATA[WordPress]]></category><guid
isPermaLink="false">http://chachra.tivixsites.com/?p=92</guid> <description><![CDATA[So I have a Wordpress MU setup where we&#8217;re hosting a bunch of sites/blogs (email me at sumit AT tivixlabs.com if you&#8217;re interested in one).
As with all my Django webapps I wanted to replicate all the sites on qa for testing purposes (so that we&#8217;re not messing production sites with plugin / wordpress upgrades etc.). [...]]]></description> <content:encoded><![CDATA[<p></p><p>So I have a <a
class="zem_slink" title="WordPress" rel="homepage" href="http://wordpress.org">Wordpress</a> MU setup where we&#8217;re hosting a bunch of sites/blogs (email me at sumit AT tivixlabs.com if you&#8217;re interested in one).</p><p>As with all my <a
class="zem_slink" title="Django (web framework)" rel="homepage" href="http://www.djangoproject.com">Django</a> webapps I wanted to replicate all the sites on qa for testing purposes (so that we&#8217;re not messing production sites with plugin / wordpress upgrades etc.). The problem is the qa site runs on a different domain (say domain2.com) than the production MU install (say domain1.com).</p><p>Since my stores the domain in 1 file (easy to fix) and a bunch of db tables, the easy solution is to:</p><ul><li>Make a copy of entire wordpress directory and put the correct domain in wp-config.php in this line: <span
style="color: #ff6600;">define(&#8216;DOMAIN_CURRENT_SITE&#8217;, &#8216;domain2.com&#8217; );<br
/> </span></li><li>Take a dump of your existing MU installs database. Open that dump file and do a replace of all &#8220;domain1.com&#8221; strings with &#8220;domain2.com&#8221;. Next do a replace of &#8220;domain1&#8243; with &#8220;domain2&#8243;. Source this new dump into the new database for the new MU instance.</li></ul><p>Thats it. These 2 steps should be it. Your MU site should now run like your old one, but at domain2.com and all existing sites/blogs will run at old-sub-domain.domain2.com too!</p> ]]></content:encoded> <wfw:commentRss>http://blog.chachra.us/2010/03/04/moving-wordpress-mu-to-a-different-domain/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 5/34 queries in 0.004 seconds using disk

Served from: blog.chachra.us @ 2010-09-08 23:58:48 -->