<?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>IRONPHISH &#187; How-To</title>
	<atom:link href="http://www.ironphish.com/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ironphish.com</link>
	<description>Tech for geek in all of us</description>
	<lastBuildDate>Wed, 25 Nov 2009 02:46:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Moving WordPress to a new domain</title>
		<link>http://www.ironphish.com/2009/11/17/moving-wordpress-to-a-new-domain/</link>
		<comments>http://www.ironphish.com/2009/11/17/moving-wordpress-to-a-new-domain/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 22:50:26 +0000</pubDate>
		<dc:creator>DanB</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[add-on]]></category>
		<category><![CDATA[bluehost]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[moving]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[transfer]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ironphish.com/?p=164</guid>
		<description><![CDATA[How-to move a Wordpress install from a subdomain or add-on domain to its own domain.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ironphish.com%2F2009%2F11%2F17%2Fmoving-wordpress-to-a-new-domain%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ironphish.com%2F2009%2F11%2F17%2Fmoving-wordpress-to-a-new-domain%2F" height="61" width="51" /></a></div><p><a href="http://www.ironphish.com/wp-content/uploads/2009/11/wp_logo.jpg"><img class="alignleft size-full wp-image-166" title="Moving-Wordpress" src="http://www.ironphish.com/wp-content/uploads/2009/11/wp_logo.jpg" alt="Moving-Wordpress" width="205" height="205" /></a>How-to move a WordPress install from a subdomain or add-on domain to its own domain and have all your back links function as they always have. Let me first say that without the help of the customer service team at <a href="http://www.BlueHost.Com/track/ironphish">BLUEHOST.COM </a>. This never would have been possible. I made this move  while I was diagnosing a scripting error on another domain under this account,  BlueHost was instrumental in tracking down the problem while I focused on moving this other domain. I cant say enough about Bluehost and the patients they have to help not to mention the knowledge they have shown with WordPress. If you have a WordPress install you owe it to your self to check them out, you can find them <a href="http://www.BlueHost.Com/track/ironphish">HERE</a>.</p>
<p>For those who have Bluehost or those who have these options in your Cpanel, this couldn&#8217;t be easier. For everyone else, this information is just as good but certain things will have to be done manually. OK, Lets get started, First thing that that needs to be done is to make a full backup of your server. This can be acheived by using &#8220;Backups&#8221; located in the &#8220;files&#8221; section of your Cpanel. Under full backup, click &#8220;Download or generate full web site backup&#8221; . When this completes you will be notified by email (The size of your server will dictate how long this takes). My backups never seem to take longer than 10 &#8211; 15mins and I have five domains in total. Once this is done and you have downloaded it to your computer its time to prep your new WordPress installation.  Go back into your Cpanel and click on &#8220;Simple Scripts&#8221; located under the &#8220;Software / Services&#8221; section. Once there look under the blogs section and click on &#8220;WordPress&#8221; This will start the new WordPress install, follow along with the install into your new domain folder.</p>
<p>Now that you have You&#8217;re new WordPress install in your new domain location we have to prep it for the next step. To keep it simple make sure you have the same theme installed on your new WordPress install as you did on your old install. Now you need to add your catogorys just like they were on your old location of WordPress to the new installation of wordpress so that when we move your WordPress from the old location to the new location, everything has a home and your down time is next to nothing. After you add all your categories to match you need to install all the plug-ins you&#8217;re going to use on your new WordPress install. The plug-ins preferences will not make the transfer so you will need to set  them up all over again, you should not set them up until after your posts are transfered but you can and should have the plugin&#8217;s installed and waiting,</p>
<p>Now that your new install is all prep&#8217;ed and ready we need to download your &#8220;wp-content&#8221; folder from your old location, this will require FTP access . Download the wp-content folder to a location on your hard drive. You will also want to download your favicon and Robots.txt file if you use them. Now upload the &#8220;wp-content&#8221; folder you just downloaded and overwrite the existing &#8220;wp-content&#8221; folder in your fresh WordPress install.  this will transfer all the images you have on the old install to the new install. now upload the two files mentioned earlier (favicon and Robots.txt) to the root of your new domain. This won’t apply to everyone, but if you have set up any sub directories for your blog, you’ll want to grab those files as well and add them to you&#8217;re new location the same way they appeared on the old location.</p>
<p>Now we are going to export your old WordPress install to your computer. You can find the export option under the Tools tab in your old WordPress dashboard. Once this is done, move to you&#8217;re new wordpress install, under the same tab (Tools) select &#8220;Import&#8221;, use the file that was exported and saved on your hard drive earlier. Now Head into the Design and Plugin&#8217;s tabs and double check that you have the same theme and plugin&#8217;s activated as the old domain name. Update all of your settings to match the old domain, this includes all plugin&#8217;s and any categories that might not have made the move correctly. Ok, now your going to want to View your  new install to ensure that everything looks like the old site, on the new domain  Test some of the functionality as well to ensure everything is working properly. Everything should be in order, Now download the &#8220;update URL&#8217;s plugin&#8221; from with in your new WordPress install and enter your old domain URL and the new domain URL where appropriate .  It will go through all of your old posts and update the domain address of the URL with the new domain address, and it only takes a matter of seconds.  Note:  I wouldn&#8217;t update the anchor text, only the domain in the URL.  Repeat these steps for any sub directory&#8217;s you may have. Now once that is done you should go and update any PPC (adwords) accounts, your e-mail, feed burner etc.</p>
<p>Almost done, once everything is done and you have all your preferences setup and your catagorys are in order you need to setup the redirect to you&#8217;re new install. Those of you who already use <a href="http://www.BlueHost.Com/track/ironphish">Bluehost</a>, simply go back to the Cpanel and look under  the &#8220;Domains&#8221; section and click &#8220;redirects&#8221; This should open to the default type &#8220;permanent (301)&#8221; now add your  old domain and subfolder if applicable, beneath that add your new domain, select with or without www, put a check in the box next to &#8220;wildcard redirect&#8221; and click add&#8230;&#8230; your done, now go to your back links and check to make sure everything is forwarding as it should, I check acouple if there working the rest are as well, now you can delete your old install and the backup created in the beginning of this article, make sure you create a new backup of your new domain. I backup at least once a week, it has saved my butt more than once&#8230;LOL</p>
<p>If you do not have the options in your Cpanel for redirecting you can acheive the same results by using a 301 redirect on your domain register or by following this. There are a few different places you can set various &#8216;Redirect&#8217; directives such  as your servers main configuration file ( httpd.conf) or within a  &#8216;Virtual Host&#8217; container inside one of your server configuration files, I personally do not work with virtual hosts anything&#8230;LOL. The  final method and the one we will be discussing here is using your servers  directory Auth file A.K.A &#8220;.htaccess&#8221; file.</p>
<p>The first thing you do is create a txt file named .htaccess if you don&#8217;t already have one, if you do, then simply edit the one thats there.<br />
There are a couple different ways to approach this but in its most simple form you  can just issue a &#8216;Redirect&#8217; request in your .htaccess file like so:<br />
Redirect /xyz http://xyzbar.com/xyz<br />
In this example if the client requests</p>
<p>http://myserver.com/xyz/xyzbar.txt,</p>
<p>it will be told to access<br />
http://xyzbar.com/xyz/xyzbar.txt instead.</p>
<p>Now this is not quite complete yet, since we need to specifically send a (301) status code. Without the status argument &#8220;Redirect&#8221; will send a temporary  redirect status (302). So we simply take the above example and change it to:</p>
<p>Redirect 301 /xyz http://xyzbar.com/xyz<br />
OR<br />
Redirect permanent /xyz http://xyzbar.com/xyz</p>
<p>And there is also a specific &#8216;RedirectPermanent&#8217; command as well so you could  just as easily say:<br />
RedirectPermanent /xyz http://xyzbar.com/xyz</p>
<p>I hope this helps, There may be other ways of redirecting other than the permanent (301)  but this has always functioned well for me and seems to be the easiest for me, your mileage may vary.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ironphish.com/2009/11/17/moving-wordpress-to-a-new-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
