<?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>Exploring The Internet &#187; mysql database</title>
	<atom:link href="http://www.learningwp.com/tag/mysql-database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningwp.com</link>
	<description>Exploring the web - Growing my experience toward my online business</description>
	<lastBuildDate>Fri, 11 Jun 2010 00:01:48 +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>How to Rename a Folder Without Much Downtime in Your CPanel?</title>
		<link>http://www.learningwp.com/rename-folder-without-much-downtime-cpanel.html</link>
		<comments>http://www.learningwp.com/rename-folder-without-much-downtime-cpanel.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 21:12:56 +0000</pubDate>
		<dc:creator>Lanna</dc:creator>
				<category><![CDATA[Blogging Tips]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[404 not found error]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[database tutorial]]></category>
		<category><![CDATA[database wizard]]></category>
		<category><![CDATA[downtime]]></category>
		<category><![CDATA[Hostmonster]]></category>
		<category><![CDATA[mysql database]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[rename a folder]]></category>

		<guid isPermaLink="false">http://www.learningwp.com/?p=711</guid>
		<description><![CDATA[








Recently I had to rename a fold from my server&#8217;s cPanel due to the reason that the domain used to be there had been transferred. Now the name of that folder does not reflect the new domain&#8217;s content. I just want a more appropriate name for that folder so I will not be confused either. [...]]]></description>
			<content:encoded><![CDATA[<p>
<!-- Begin Google Adsense code -->
<div style="display: block; float: left; padding: 5px 10px 10px 0;">
<script type="text/javascript"><!--
google_ad_client = "pub-4932554700716308";
/* 336x280, created 12/24/07 */
google_ad_slot = "2510575724";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
Recently I had to rename a fold from my server&#8217;s <em>cPanel</em> due to the reason that the domain used to be there had been transferred. Now the name of that folder does not reflect the new domain&#8217;s content. I just want a more appropriate name for that folder so I will not be confused either. However, it just would not allow me to directly rename it from the server. Every time when I attempted to change that folder&#8217;s name to something else. It would bring down that website. All I got is this</p>
<p>&#8220;<strong>Not Found<br />
The requested URL /index.php was not found on this server.</strong></p>
<p><strong>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</strong></p>
<p><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></p>
<p><strong>Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.mycoolonlinestores.com Port 80</strong>&#8220;.</p>
<p>I searched the <em>Internet</em> for a solution. Here is the way of how I&#8217;ve got it to work. I am sure someone may be interested in this. So why not writing down these steps of how I&#8217;ve solved this problem? By the way, the name of the folder I&#8217;ve tried to change is associated with a self-hosted <em>WordPress</em> site. And the <em>cPanel</em> is associated with <a onmouseover="window.status='http://www.hostmonster.com';return true;" onmouseout="window.status=' ';return true;" href="http://www.kqzyfj.com/click-2893050-10422157" target="_blank">Hostmonster</a>&#8217;s <em>cPanel</em>.</p>
<ul>
<li>First download all the files within that folder to your local computer. I use <a title="How to Set Up FTP to Transfer Files?" href="http://meaningfulblog.blogspot.com/2008/03/how-to-set-up-ftp-to-transfer-files.html" target="_blank">FTP</a> to get the job done.</li>
</ul>
<ul>
<li>Next create a new folder in your server with whatever name you&#8217;ve preferred and upload those files that you&#8217;ve downloaded earlier to this new folder.</li>
</ul>
<ul>
<li>Next log in to your <em>cPanel</em> and click on <em>phpMyadmin</em>. A new window would pop up. It will allow you to export (backup) your database. See <a title="Back Up Database" href="http://www.tamba2.org.uk/wordpress/backup/" target="_blank">details</a> here. Don&#8217;t close this window, you&#8217;ll need it later.</li>
</ul>
<ul>
<li>Now go back to your cPanel. Click on <em>MySQL ® Databases</em> <span style="color: #ff0000;">or</span> <em>MySQL ® Database Wizard</em> to create a new database. See this <a title="How to Create a New Database?" href="http://www.siteground.com/tutorials/php-mysql/mysql_database_user.htm" target="_blank">tutorial</a> here. Remember its user name and password.</li>
</ul>
<ul>
<li>Then open your database you&#8217;ve backuped earlier with <em>Notepad</em> editor. Hit <em>Ctrl</em> and <em>F</em> at the same time to bring up a search box. Type in <span style="color: #ff0000;">Database</span> and replace old database name with the new one. Also type in <span style="color: #ff0000;">public_html</span> and replace old folder name with the new one. Make sure you save it in your new database name.</li>
</ul>
<ul>
<li>Now go back to <em>phpMyadmin</em> window. The one I told you earlier not to close it. Click on <em>Import</em> to upload your amended database.</li>
</ul>
<ul>
<li>Then open <span style="color: #ff0000;">wp-config.php</span> (should be in the root directory of your new folder). Edit and upload it back to the same place. See details below:<br />
<table style="height: 21px;" border="1" cellspacing="0" width="440">
<tbody>
<tr>
<td style="background-color: #e5ecfa; width: 440px;">
<p style="margin: 5pt 15pt; text-align: justify;">define(’DB_NAME’, ‘<strong>databasename</strong>‘); // Change databasename to be your new database name</p>
<p style="margin: 5pt 15pt; text-align: justify;">define(’DB_PASSWORD’, ‘<strong>mysqlpassword</strong>‘); // Change mysqlpassword to be your new MYSQL password</p>
<p style="margin: 5pt 15pt; text-align: justify;">define(’DB_USER’, ‘<strong>mysqlusername</strong>‘); // Change mysqlusername to be your new MySQL username</p>
<p style="margin: 5pt 15pt; text-align: justify;">define(’DB_HOST’, ‘localhost’); // Leave the way it is.</p>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul>
<li>Since the domain is assigned to the old folder, there is no way that you can assign it to the new folder. However, you need to click on <em>Domain Manager</em> in your <em>cPanel</em>. Once you are there,  tick that domain. On your right side, scroll down to un-assign that domain to your <em>cPanel</em>. Quickly, during this time your website will be down.</li>
</ul>
<ul>
<li>Finally go back to <em>cPanel</em> and click on <em>Addon Domains</em>. A new page will open, assign that domain to your new folder and hit <em>Add Domain</em> button. See details below:<br />
<table style="height: 21px;" border="1" cellspacing="0" width="440">
<tbody>
<tr>
<td style="background-color: #e5ecfa; width: 440px;">
<p style="margin: 5pt 15pt; text-align: justify;">Step 1 Tick next to &#8220;Use a domain that is already associated with your account&#8221;. Scroll down to find it.</p>
<p style="margin: 5pt 15pt; text-align: justify;">Step 2 Leave it alone.</p>
<p style="margin: 5pt 15pt; text-align: justify;">Step 3 Tick next to &#8220;<strong>Addon Domain</strong>&#8220;.</p>
<p style="margin: 5pt 15pt; text-align: justify;">Step 4 Tick next to &#8220;Use an existing directory&#8221;. And below &#8220;<strong>Sub-domain:&#8221; </strong>type in your new folder&#8217;s name.</p>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
<p>Now type your website&#8217;s url in your browser. If everything works fine, you should be able to see your website up and running again. Some people might have different approach. Feel free to talk about yours here in comment section. Any other feedback is welcome too.</p>
<p><div style="float:left;width:49%;margin-right:1%;height:245px;"><a rel="nofollow" href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=database+tutorial&icep_item=360106069870&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">TUTORIAL MANUAL ALPHA FOUR FULLY RELATIONAL DATABASE</a><br /><table border="0" cellpadding="8"><tr><td><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=database+tutorial&icep_item=360106069870&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss"><img border="0" src="http://thumbs.ebaystatic.com/pict/360106069870_0.jpg"></a></td><td><strong>US &#36;8.25</strong><br /> End Date: Sunday Aug-01-2010 21:22:27 PDT<br />Buy It Now for only: US &#36;8.25<br /><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=database+tutorial&icep_item=360106069870&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">Buy it now</a> | <a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&toolid=10005&campid=5336190399&customid=database+tutorial&mpre=http%3A%2F%2Fcgi1.ebay.com%2Fws%2FeBayISAPI.dll%3FMfcISAPICommand%3DMakeTrack%26item%3D360106069870%26ssPageName%3DRSS%3AB%3ASRCH%3AUS%3A104">Add to watch list</a></td></tr></table>
</div><div style="float:left;width:49%;margin-right:1%;height:245px;"><a rel="nofollow" href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=database+tutorial&icep_item=110555109332&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">Jdbc Database Access With Java: A Tutorial and Annotate</a><br /><table border="0" cellpadding="8"><tr><td><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=database+tutorial&icep_item=110555109332&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss"><img border="0" src="http://thumbs.ebaystatic.com/pict/110555109332_0.jpg"></a></td><td><strong>US &#36;7.94</strong><br /> End Date: Monday Aug-02-2010 23:46:36 PDT<br />Buy It Now for only: US &#36;7.94<br /><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=database+tutorial&icep_item=110555109332&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">Buy it now</a> | <a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&toolid=10005&campid=5336190399&customid=database+tutorial&mpre=http%3A%2F%2Fcgi1.ebay.com%2Fws%2FeBayISAPI.dll%3FMfcISAPICommand%3DMakeTrack%26item%3D110555109332%26ssPageName%3DRSS%3AB%3ASRCH%3AUS%3A104">Add to watch list</a></td></tr></table>
</div></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;title=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F&amp;bodytext=Recently%20I%20had%20to%20rename%20a%20fold%20from%20my%20server%27s%20cPanel%20due%20to%20the%20reason%20that%20the%20domain%20used%20to%20be%20there%20had%20been%20transferred.%20Now%20the%20name%20of%20that%20folder%20does%20not%20reflect%20the%20new%20domain%27s%20content.%20I%20just%20want%20a%20more%20appropriate%20name%20for%20that%20folde" title="Digg"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;title=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F&amp;notes=Recently%20I%20had%20to%20rename%20a%20fold%20from%20my%20server%27s%20cPanel%20due%20to%20the%20reason%20that%20the%20domain%20used%20to%20be%20there%20had%20been%20transferred.%20Now%20the%20name%20of%20that%20folder%20does%20not%20reflect%20the%20new%20domain%27s%20content.%20I%20just%20want%20a%20more%20appropriate%20name%20for%20that%20folde" title="del.icio.us"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;t=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F" title="Facebook"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;h=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F" title="NewsVine"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;title=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F" title="Reddit"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;title=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F" title="StumbleUpon"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;title=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F&amp;annotation=Recently%20I%20had%20to%20rename%20a%20fold%20from%20my%20server%27s%20cPanel%20due%20to%20the%20reason%20that%20the%20domain%20used%20to%20be%20there%20had%20been%20transferred.%20Now%20the%20name%20of%20that%20folder%20does%20not%20reflect%20the%20new%20domain%27s%20content.%20I%20just%20want%20a%20more%20appropriate%20name%20for%20that%20folde" title="Google Bookmarks"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;submitHeadline=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F&amp;submitSummary=Recently%20I%20had%20to%20rename%20a%20fold%20from%20my%20server%27s%20cPanel%20due%20to%20the%20reason%20that%20the%20domain%20used%20to%20be%20there%20had%20been%20transferred.%20Now%20the%20name%20of%20that%20folder%20does%20not%20reflect%20the%20new%20domain%27s%20content.%20I%20just%20want%20a%20more%20appropriate%20name%20for%20that%20folde&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F%20-%20http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html" title="Twitter"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html" title="Technorati"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;title=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F" title="Live"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;title=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F&amp;source=Exploring+The+Internet+Exploring+the+web+-+Growing+my+experience+toward+my+online+business&amp;summary=Recently%20I%20had%20to%20rename%20a%20fold%20from%20my%20server%27s%20cPanel%20due%20to%20the%20reason%20that%20the%20domain%20used%20to%20be%20there%20had%20been%20transferred.%20Now%20the%20name%20of%20that%20folder%20does%20not%20reflect%20the%20new%20domain%27s%20content.%20I%20just%20want%20a%20more%20appropriate%20name%20for%20that%20folde" title="LinkedIn"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.learningwp.com%2Frename-folder-without-much-downtime-cpanel.html&amp;t=How%20to%20Rename%20a%20Folder%20Without%20Much%20Downtime%20in%20Your%20CPanel%3F" title="MySpace"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="" title="YahooMyWeb"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.learningwp.com/rename-folder-without-much-downtime-cpanel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Transfer My WordPress Blog to a New Domain?</title>
		<link>http://www.learningwp.com/transfer-my-wordpress-blog-to-a-new-domain.html</link>
		<comments>http://www.learningwp.com/transfer-my-wordpress-blog-to-a-new-domain.html#comments</comments>
		<pubDate>Tue, 25 Nov 2008 04:47:13 +0000</pubDate>
		<dc:creator>Lanna</dc:creator>
				<category><![CDATA[Domain]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[database name]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[mysql database]]></category>
		<category><![CDATA[mysql tutorial]]></category>
		<category><![CDATA[new domain]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[transfer domain]]></category>
		<category><![CDATA[transfer WordPress]]></category>
		<category><![CDATA[WordPress blog]]></category>

		<guid isPermaLink="false">http://www.learningwp.com/?p=150</guid>
		<description><![CDATA[








I&#8217;ve just successfully transferred my old WordPress blog which is in the subdomain of /blog/ to a new domain (the current domain). This was done within the same host.

First I used FTP to back up my old WordPress blog files to my laptop.


Second I upgraded my old WordPress 2.6.1 to be the newest version WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>
<!-- Begin Google Adsense code -->
<div style="display: block; float: left; padding: 5px 10px 10px 0;">
<script type="text/javascript"><!--
google_ad_client = "pub-4932554700716308";
/* 336x280, created 12/24/07 */
google_ad_slot = "2510575724";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
I&#8217;ve just successfully transferred my old <em>WordPress</em> blog which is in the subdomain of /blog/ to a new domain (the current domain). This was done within the same host.</p>
<ul>
<li>First I used <a title="How to Set Up FTP to transfer Files?" href="http://meaningfulblog.blogspot.com/2008/03/how-to-set-up-ftp-to-transfer-files.html" target="_blank">FTP</a> to back up my old <em>WordPress</em> blog files to my laptop.</li>
</ul>
<ul>
<li>Second I upgraded my old <em>WordPress 2.6.1</em> to be the newest version <a title="How to Upgrade Your WordPress Blog to WordPress 2.6.5?" href="http://www.learningwp.com/how-to-upgrade-your-wordpress-blog-to-wordpress-265.html">WordPress 2.6.5</a>.</li>
</ul>
<ul>
<li>Third I logged in to my host&#8217;s <span style="color: #ff0000;">cPanel</span>/<span style="color: #ff0000;">phpMyAdmin</span> to export my old <em>WordPress</em> blog&#8217;s database to my laptop. See <a title="Wordpress Database Backup" href="http://www.tamba2.org.uk/wordpress/backup/" target="_blank">WordPress Backup with phpMyAdmin</a> here.</li>
</ul>
<ul>
<li>Next I created a new folder named wp for the new domain. I then created a <code>robots.txt</code> in wp fold with the following contents:<br />
<code>User-agent: *<br />
Disallow: /</code><br />
This is to prevent any search engines to crawl my site before it is ready.</li>
</ul>
<ul>
<li>Next I created a new database in my host <span style="color: #ff0000;">cPanel</span> for this new domain. See <a title="WordPress Tutorial: Setting Up A MySQL Database With cPanel" href="http://www.siteground.com/tutorials/php-mysql/mysql_database_user.htm" target="_blank">WordPress Tutorial: Setting Up A MySQL Database With cPanel</a> here.</li>
</ul>
<ul>
<li>Next I typed the url of my website in my browse to run the install and input the information I&#8217;v got from the last step to finish the installation.</li>
</ul>
<ul>
<li>Then I edited wp-config.php file which should be in your root directory and changed the high-lighted parts with the information I&#8217;ve got earlier.</li>
<p><span>define(’DB_NAME’, ‘<strong>databasename</strong>‘); // Change the high-lighted part to be your database name<br />
define(’DB_USER’, ‘<strong>mysqlusername</strong>‘); // Change the high-lighted part to be your MySQL username<br />
define(’DB_PASSWORD’, ‘<strong>mysqlpassword</strong>‘); // Change the high-lighted part to be your password<br />
define(’DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value.</span></ul>
<ul>
<li>Next I used <a title="How to Set Up FTP to transfer Files?" href="http://meaningfulblog.blogspot.com/2008/03/how-to-set-up-ftp-to-transfer-files.html" target="_blank">FTP</a> to upload all my old <em>WordPress</em> blog&#8217;s files to <span style="color: #ff0000;">public_html</span>/<span style="color: #ff0000;">wp</span> folder.</li>
</ul>
<ul>
<li>Then I imported my old database to replace the new one I&#8217;ve created eariler. (if your database name, mysql username, and mysql password are the same as the old one, then you don&#8217;t need to do anything otherwise you have to change them before you can import it.)</li>
</ul>
<ul>
<li>Then I logged in to my <em>WordPress</em> admin area and used <a onclick="exitTracker._trackEvent('article','http://wordpress.org/extend/plugins/search-and-replace/');" href="http://wordpress.org/extend/plugins/search-and-replace/">Search and Replace plugin</a> to search all my old <em>WordPress</em> urls in database to be replaced with my new urls.</li>
</ul>
<ul>
<li>Then I double checked my website to see whether everything was working properly. After that I deleted the<code> robots.txt file.</code></li>
</ul>
<ul>
<li>Finally I added the following line in my old blog&#8217;s .htaccess file right after<br />
RewriteEngine On<br />
<span style="color: #ff0000;">RewriteRule ^(.*)$ http://www.<strong>yourdomainname</strong>.com/$1 [R=301,L]</span></li>
<p>You must change <strong>yourdomainname</strong> to be your actual domain name. Adding this line in my old blog&#8217;s .htaccess will ensure that all my old blog&#8217;s traffic will be redirected to my new blog with every single post I&#8217;ve created.</ul>
<p>Any questions? or suggestions? Please share them with us.</p>
<p><div style="float:left;width:49%;margin-right:1%;height:245px;"><a rel="nofollow" href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=110565234103&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">GO GREEN Enviro Friendly Website for Sale - FREE DOMAIN</a><br /><table border="0" cellpadding="8"><tr><td><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=110565234103&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss"><img border="0" src="http://thumbs.ebaystatic.com/pict/110565234103_0.jpg"></a></td><td><strong>US &#36;1.99</strong><br /> End Date: Thursday Jul-29-2010 11:16:14 PDT<br />Buy It Now for only: US &#36;1.99<br /><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=110565234103&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">Buy it now</a> | <a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&toolid=10005&campid=5336190399&customid=domain+for+sale&mpre=http%3A%2F%2Fcgi1.ebay.com%2Fws%2FeBayISAPI.dll%3FMfcISAPICommand%3DMakeTrack%26item%3D110565234103%26ssPageName%3DRSS%3AB%3ASRCH%3AUS%3A104">Add to watch list</a></td></tr></table>
</div><div style="float:left;width:49%;margin-right:1%;height:245px;"><a rel="nofollow" href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=280541066642&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">Domain Name For Sale</a><br /><table border="0" cellpadding="8"><tr><td><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=280541066642&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss"><img border="0" src="http://thumbs.ebaystatic.com/pict/280541066642_0.jpg"></a></td><td><strong>US &#36;0.99</strong> (0 Bid)<br /> End Date: Thursday Jul-29-2010 11:16:38 PDT<br /><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=280541066642&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">Bid now</a> | <a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&toolid=10005&campid=5336190399&customid=domain+for+sale&mpre=http%3A%2F%2Fcgi1.ebay.com%2Fws%2FeBayISAPI.dll%3FMfcISAPICommand%3DMakeTrack%26item%3D280541066642%26ssPageName%3DRSS%3AB%3ASRCH%3AUS%3A104">Add to watch list</a></td></tr></table>
</div></p>
<p>Related articles<br />
<a title="Transfer My Joomla! Website to a New Host" href="http://meaningfulblog.blogspot.com/2008/09/transfer-my-joomla-website-to-new-host.html" target="_blank">Transfer My Joomla! Website to a New Host</a><br />
<a title="How to Transfer Your WordPress blog to a New Host?" href="http://www.learningwp.com/how-to-transfer-your-wordpress-blog-to-a-new-host.html">How to Transfer Your WordPress blog to a New Host? </a><br />
<a title="How to Transfer Your Joomla! Website to a New Domain?" href="http://meaningfulblog.blogspot.com/2008/11/transfer-joomla-website-to-new-domain.html" target="_blank">How to Transfer Your Joomla! Website to a New Domain?</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F&amp;bodytext=I%27ve%20just%20successfully%20transferred%20my%20old%20WordPress%20blog%20which%20is%20in%20the%20subdomain%20of%20%2Fblog%2F%20to%20a%20new%20domain%20%28the%20current%20domain%29.%20This%20was%20done%20within%20the%20same%20host.%0D%0A%0D%0A%09First%20I%20used%20FTP%20to%20back%20up%20my%20old%20WordPress%20blog%20files%20to%20my%20laptop.%0D%0A%0D%0A%0D%0A%09Sec" title="Digg"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F&amp;notes=I%27ve%20just%20successfully%20transferred%20my%20old%20WordPress%20blog%20which%20is%20in%20the%20subdomain%20of%20%2Fblog%2F%20to%20a%20new%20domain%20%28the%20current%20domain%29.%20This%20was%20done%20within%20the%20same%20host.%0D%0A%0D%0A%09First%20I%20used%20FTP%20to%20back%20up%20my%20old%20WordPress%20blog%20files%20to%20my%20laptop.%0D%0A%0D%0A%0D%0A%09Sec" title="del.icio.us"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;t=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="Facebook"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;h=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="NewsVine"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="Reddit"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="StumbleUpon"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F&amp;annotation=I%27ve%20just%20successfully%20transferred%20my%20old%20WordPress%20blog%20which%20is%20in%20the%20subdomain%20of%20%2Fblog%2F%20to%20a%20new%20domain%20%28the%20current%20domain%29.%20This%20was%20done%20within%20the%20same%20host.%0D%0A%0D%0A%09First%20I%20used%20FTP%20to%20back%20up%20my%20old%20WordPress%20blog%20files%20to%20my%20laptop.%0D%0A%0D%0A%0D%0A%09Sec" title="Google Bookmarks"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;submitHeadline=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F&amp;submitSummary=I%27ve%20just%20successfully%20transferred%20my%20old%20WordPress%20blog%20which%20is%20in%20the%20subdomain%20of%20%2Fblog%2F%20to%20a%20new%20domain%20%28the%20current%20domain%29.%20This%20was%20done%20within%20the%20same%20host.%0D%0A%0D%0A%09First%20I%20used%20FTP%20to%20back%20up%20my%20old%20WordPress%20blog%20files%20to%20my%20laptop.%0D%0A%0D%0A%0D%0A%09Sec&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F%20-%20http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html" title="Twitter"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html" title="Technorati"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="Live"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F&amp;source=Exploring+The+Internet+Exploring+the+web+-+Growing+my+experience+toward+my+online+business&amp;summary=I%27ve%20just%20successfully%20transferred%20my%20old%20WordPress%20blog%20which%20is%20in%20the%20subdomain%20of%20%2Fblog%2F%20to%20a%20new%20domain%20%28the%20current%20domain%29.%20This%20was%20done%20within%20the%20same%20host.%0D%0A%0D%0A%09First%20I%20used%20FTP%20to%20back%20up%20my%20old%20WordPress%20blog%20files%20to%20my%20laptop.%0D%0A%0D%0A%0D%0A%09Sec" title="LinkedIn"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;t=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="MySpace"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="" title="YahooMyWeb"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.learningwp.com/transfer-my-wordpress-blog-to-a-new-domain.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
