<?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>WP Garage &#187; 301 redirect</title>
	<atom:link href="http://wpgarage.com/tag/301-redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Wed, 16 Nov 2011 14:36:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Even More on 301 Redirects with WordPress, Primary Domains, Dummy Domains and Hostgator</title>
		<link>http://wpgarage.com/good-blogging-practice/301-redirects-wordpress-primary-domains-hostgator/</link>
		<comments>http://wpgarage.com/good-blogging-practice/301-redirects-wordpress-primary-domains-hostgator/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 17:37:50 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Good Blogging Practice]]></category>
		<category><![CDATA[301 redirect]]></category>
		<category><![CDATA[domains]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[Redirect]]></category>

		<guid isPermaLink="false">?p=876</guid>
		<description><![CDATA[<p>I wanted to redirect 2 domains. One of the domains, (let&#8217;s call it olddomain.com), was listed as the primary domain with Hostgator.&#160; The other domain, (let&#8217;s call it otherolddomain.com), was in a subdirectory of the primary domain. I thought I could just reuse the oh-so-easy 301 redirect that worked when we moved WordPressGarage.com over to [...]</p><p>This post was originally published at <a href="http://wpgarage.com/good-blogging-practice/301-redirects-wordpress-primary-domains-hostgator/">Even More on 301 Redirects with WordPress, Primary Domains, Dummy Domains and Hostgator</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/good-blogging-practice/301-redirects-wordpress-primary-domains-hostgator/" data-url="http://RATE_LIMIT_EXCEEDED" data-text="Even More on 301 Redirects with WordPress, Primary Domains, Dummy Domains and Hostgator" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://wpgarage.com/good-blogging-practice/301-redirects-wordpress-primary-domains-hostgator/&amp;layout=box_count&amp;show_faces=true&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/good-blogging-practice/301-redirects-wordpress-primary-domains-hostgator/"></g:plusone></div></div><p>I wanted to redirect 2 domains. One of the domains, <em>(let&#8217;s call it olddomain.com)</em>, was listed as the primary domain with Hostgator.&nbsp; The other domain, <em>(let&#8217;s call it otherolddomain.com</em>), was in a subdirectory of the primary domain. I thought I could just reuse the <a href="tips/wordpress-301-redirect/">oh-so-easy 301 redirect</a> that worked when we moved WordPressGarage.com over to WPGarage.com. Ha!</p>
<p>As it turns out, I got this error:</p>
<p><b>Firefox has detected that the server is redirecting the request for this address in a way that will never complete</b></p>
<p>I quickly got on chat with Hostgator and they told me that I had to create a &#8220;dummy&#8221; domain that doesn&#8217;t redirect,&nbsp; (<em>let&#8217;s call it dummydomain.com)</em>, and set it as the primary domain because you can&#8217;t have a redirect on the primary domain if you also want a redirect on subdirectories. Apparently that is what would cause an infinite loop.&nbsp; A dummy domain could be any domain that won&#8217;t need a redirect. So, I created a dummy domain, <em>dummydomain.com</em> and set it as the primary domain. I then created an add-on (subdirectory) domain for the former primary domain, <em>olddomain.com</em>, and moved the primary domain folders down to the subdirectory level where <em>olddomain.com</em> is now located. The other domain, <em>otherolddomain.com</em> was fine all along since it was an add-on domain (in a subdirectory).</p>
<p>had Hostgator touch up the htaccess and voila! Here&#8217;s what worked:</p>
<p>the .htaccess on the old domains:</p>
<p><img class="alignnone size-full wp-image-878" title="htaccesssubdirectory" src="http://wpgarage.com/wp-content/uploads/2011/02/htaccesssubdirectory.png" alt="" width="460" height="94"></p>
<p>In HostGator, here&#8217;s how the redirect looked:</p>
<p><img class="alignnone size-full wp-image-879" title="redirectshostgator" src="http://wpgarage.com/wp-content/uploads/2011/02/redirectshostgator.gif" alt="" width="493" height="74"></p>
<p>I think that the code that we mentioned in an earlier <a href="tips/wordpress-301-redirect/">post</a>:<a href="tips/wordpress-301-redirect/"><br />
</a></p>
<pre>Redirect 301 / http://www.<strong>new</strong>domain.com/<em>

</em></pre>
<p>would have worked but I didn&#8217;t want to break what worked!</p>
<p>Read more about 301 redirect fun!</p>
<ul>
<li><strong><a title="Permanent Link to &lt;span data-type=" rel="bookmark" href="../tips/wordpress-301-redirect/">How to move a domain with a 301 redirect on WordPress</a></strong></li>
<li><strong><a rel="bookmark" href="../good-blogging-practice/more-on-301-redirect-wordpress-new-domain/">More on doing a 301 redirect of a WordPress site to a new domain</a></strong></li>
</ul>
<p>This post was originally published at <a href="http://wpgarage.com/good-blogging-practice/301-redirects-wordpress-primary-domains-hostgator/">Even More on 301 Redirects with WordPress, Primary Domains, Dummy Domains and Hostgator</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/good-blogging-practice/301-redirects-wordpress-primary-domains-hostgator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>More on doing a 301 redirect of a WordPress site to a new domain</title>
		<link>http://wpgarage.com/good-blogging-practice/more-on-301-redirect-wordpress-new-domain/</link>
		<comments>http://wpgarage.com/good-blogging-practice/more-on-301-redirect-wordpress-new-domain/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 09:45:53 +0000</pubDate>
		<dc:creator>Miriam Schwab</dc:creator>
				<category><![CDATA[Good Blogging Practice]]></category>
		<category><![CDATA[301 redirect]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Google Webmaster Tools]]></category>
		<category><![CDATA[PageRank]]></category>

		<guid isPermaLink="false">?p=669</guid>
		<description><![CDATA[<p>A few months ago, we redirected this blog from WordPressGarage.com to WPGarage.com in order to respect the request by the folks at Automattic that people not use the word WordPress in their domain name. We wrote up a guide on how to do this type of 301 redirect, and at that point it seemed that [...]</p><p>This post was originally published at <a href="http://wpgarage.com/good-blogging-practice/more-on-301-redirect-wordpress-new-domain/">More on doing a 301 redirect of a WordPress site to a new domain</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/good-blogging-practice/more-on-301-redirect-wordpress-new-domain/" data-url="http://RATE_LIMIT_EXCEEDED" data-text="More on doing a 301 redirect of a WordPress site to a new domain" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://wpgarage.com/good-blogging-practice/more-on-301-redirect-wordpress-new-domain/&amp;layout=box_count&amp;show_faces=true&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/good-blogging-practice/more-on-301-redirect-wordpress-new-domain/"></g:plusone></div></div><p>A few months ago, we redirected this blog from WordPressGarage.com to WPGarage.com in order to respect the request by the folks at Automattic that people not use the word WordPress in their domain name. <a title="WordPressGarage.com now on WPGarage.com, and how to move a domain with a 301 redirect on WordPress" href="tips/wordpress-301-redirect/">We wrote up a guide on how to do this type of 301 redirect</a>, and at that point it seemed that things had gone mostly smoothly. However, I now know that things did not go so smoothly, and here are some things that you should pay attention to if you also choose to 301 redirect your site to a new domain:</p>
<h2>Google Analytics</h2>
<p><a href="http://google.com/analytics">Google Analytics</a> stopped tracking our traffic. It said it was receiving data, but the stats showed zero visitors – an internet flatline. At first I thought that the redirect had caused all traffic to this site to cease, but I knew that could not be the case since our posts were still appearing in the SERPs, which is where most of our traffic comes from. Plus, we were still getting comments, which meant that some people were visiting. My search to figure out why this was happening led me to find a bunch of other issues (listed below), but eventually I just removed the Google Analytics WordPress plugin we were using, and pasted the analytics code into the footer. That solved the problem, and the stats started showing traffic again.</p>
<p>On another note, it seems that you need to log into Google Analytics and update the profile to the new address. I did that, but it didn’t fix the above problem. Anyways, <a href="http://groups.google.com/group/analytics-help-tracking/msg/822daf0e4303f0dc?pli=1">here says it doesn’t matter</a> what domain name in your Google Analytics settings the tracking code is on.</p>
<p>Lesson: pay close attention to your analytics stats after you redirect your site to a new domain. That way, if you see a problem you can start working immediately to solve it. It took me six days to solve our problem, which meant six days of no logged statistics. I would have hated to have done that to a client!</p>
<h2>Google Webmaster Tools</h2>
<p>If you’ve got <a href="www.google.com/webmasters/tools/">Google Webmaster Tools</a> monitoring your site, you need to change some settings there in order for it to start tracking the new domain properly.</p>
<p>Google has complete instructions on what to do if you are <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=83105&amp;hl=en">moving a site to a new domain</a>. One of the things they mention there, which we didn’t do before we did the redirect, is to update your settings in Google Webmaster Tools. If you’ve been tracking your site in Google Webmaster Tools, you need to register a <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=83106">change of address</a>. To do so you, need to re-verify the old site, which includes verifying both the www and non-www versions of the site. <a title="Preferred domain (www or non-www)" href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=44231">Google says</a> that the reason for this is that “Typically, both versions point to the same physical location, but this is not always the case.” I had only added the non-www version to Google Webmaster tools, so I had to add a new site for <a href="http://www.wordpressgarage.com">www.wordpressgarage.com</a>. This was a problem since I’d redirected everything and couldn’t put the meta tag that is required in the header of the old site. So I had to remove the 301 redirect from WordPressGarage.com’s .htaccess, add the header tag, and Verify. Once that was done, I could do the change of address.</p>
<h2>Redirect Properly with or without www</h2>
<p>While I was trying to figure out why our analytics weren’t working, I noticed that we had set up the 301 redirect as follows: <a href="http://wordpressgarage.com">http://wordpressgarage.com</a> &gt; <a href="http://wpgarage.com">http://wpgarage.com</a> &gt; <a href="http://wpgarage.com">http://wpgarage.com</a>. In other words, we had written in the .htaccess file that visitors to wordpressgarage.com should be redirected to <a href="http://wpgarage.com">www.wpgarage.com</a>, but here on wpgarage.com we have it set up that all visitors are redirected to the non-www version of the domain name. Basically, visitors were redirected twice. Not elegant, that’s for sure.</p>
<h2>Google PageRank</h2>
<p>I recently realized that this site lost its Google PageRank in the redirection process. We used to have a PR of 4, and now it’s 0. Zero!! I would like to know why that is the case, since all of a site’s value is supposed to be passed on to the new domain if a 301 redirect is used. But in consolation, I haven’t seen a reduction in traffic. In fact, traffic has gone up since we did the redirect.</p>
<p>So there you go: some more things you should pay attention to when doing a 301 redirect of a site to a new domain name. All of the above makes me realize how dependent we are on Google for managing our site properly. What can we do – they create the best (free) tools, so we use them, and we also depend on them for traffic.</p>
<p>This post was originally published at <a href="http://wpgarage.com/good-blogging-practice/more-on-301-redirect-wordpress-new-domain/">More on doing a 301 redirect of a WordPress site to a new domain</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/good-blogging-practice/more-on-301-redirect-wordpress-new-domain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

