<?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>Liberty Interactive - Search Marketing Blog &#187; 301</title>
	<atom:link href="http://www.libertyinteractivemarketing.com/blog/tag/301/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.libertyinteractivemarketing.com/blog</link>
	<description>Internet Marketing and SEO in Phoenix, AZ</description>
	<lastBuildDate>Thu, 15 Dec 2011 00:39:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Successfully Forwarding Blogger to WordPress</title>
		<link>http://www.libertyinteractivemarketing.com/blog/successfully-forwarding-blogger-to-wordpress/</link>
		<comments>http://www.libertyinteractivemarketing.com/blog/successfully-forwarding-blogger-to-wordpress/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 21:56:31 +0000</pubDate>
		<dc:creator>Liberty Tsighis</dc:creator>
				<category><![CDATA[Search Marketing]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Social Networking, Media, Marketing (SMM/SMO)]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[blogger]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.libertyinteractivemarketing.com/blog/?p=64</guid>
		<description><![CDATA[A little while back we transitioned from Blogger to a self hosted WordPress solution. We did this for a variety of reasons, not least of which was SEO. But that&#8217;s for another post. What I want to talk about is how we forwarded Blogger to WordPress. I had to wade through a lot of blogs [...]]]></description>
			<content:encoded><![CDATA[<p>A little while back we transitioned from Blogger to a self hosted WordPress solution.  We did this for a variety of reasons, not least of which was SEO.  But that&#8217;s for another post.  What I want to talk about is how we forwarded Blogger to WordPress.  I had to wade through a lot of blogs to find out a good way of doing this.  Most of the entries about this process are dated to last summer, some account for Blogger 2.0, some don&#8217;t.  Some account for SEO, some don&#8217;t.  Some have good, well explained code, most don&#8217;t.  One thing that really irked me is that <em>none</em> mention the new redirect window that Blogger uses.</p>
<p>Initially we wanted to just forward everything that went through blogspot to the new blog address, but we immediately realized that blogger won&#8217;t allow you to forward to a folder.  This means that blogger absolutely <em>will not</em> allow you to forward to libertyinteractivemarketing.com/blog.  However, they will allow you to forward to blog.libertyinteractivemarketing.com.  I find this ridiculous because google gives more weight to the former example, but I digress.  So we made the subdomain, and then 301 redirected from the subdomain to libertyinteractivemarketing.com/blog.  So there are two redirects happening, one when you come to our Blogger (using their Custom Domain), and another when you hit the subdomain.  This should be fine because no matter what, Google should take into account the final redirect as being the correct one.</p>
<p>The problem ended up being that there are still links on Google and the other search engines referencing our Blogger blog.  We also realized that the Blogger custom domain thing made it so any hits to our blogger blog were faced with this:<br />
<div class="wp-caption alignnone" style="width: 510px"><br />
<a class="tt-flickr tt-flickr-Medium" href="http://www.flickr.com/photos/28681934@N02/2678261316/"><img src="http://farm4.static.flickr.com/3240/2678261316_67875dcc6e.jpg" border="0" alt="bloggerredirect" width="500" height="218" /></a><p class="wp-caption-text">This is why we can't have nice things</p></div></p>
<h2>What we wanted</h2>
<p>We decided we wanted the blog to remain in existence but only as a forwarding tool and we wanted to NOINDEX it so that Google wouldn&#8217;t penalize us for duplicated content.  We also wanted each link for a specific Blogger post on the search engine (and in the blog itself) to forward to that same post on our new WordPress.  And finally, we wanted the main Blogger page to forward to our new WordPress installation.  We wanted to do this using SEO best practices, but as you&#8217;ll find, blogger makes this insanely difficult.</p>
<h1>How We Did It</h1>
<h2>Setup Redirects</h2>
<p>First off, you are going to want to be working in your Blogger template editor, which can be found by going to the <strong>Layout tab</strong>, and then clicking on <strong>Edit HTML</strong>. </p>
<p>To Redirect the front page of the blog, you cannot use any 301 good stuff.  You must use HTTP refresh simply because if you try to use Blogger&#8217;s forwarding you&#8217;ll have to see that screen above asking permission to redirect.  I think that&#8217;s bull poo, but so far I have no good solution to this.  Put this in between your <strong>head tags</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'6;url=http://yournewblog.wordpress.com/'</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'refresh'</span><span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<h2>Display Message to Users</h2>
<div class="wp-caption alignnone" style="width: 510px"><br />
<a href="http://www.flickr.com/photos/28681934@N02/2677760461/" class="tt-flickr tt-flickr-Medium"><img src="http://farm4.static.flickr.com/3183/2677760461_6436c6e544.jpg" alt="Blogger Redirect Message" width="500" height="201" border="0" /></a> <p class="wp-caption-text">You might want to theme this like your new blog's colors, perhaps not so spammy?</p></div>
<p>To make it so the user isn&#8217;t surprised when they are suddenly sent to the new page, a message is highly recommended.  Put this right after your first <strong>body tag</strong>.  Remember to swap out the information in there with yours.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'position: absolute; top: 30px; left: 30px; border: solid 2px #333; color: #000; background-color: yellow; padding: 5px; width: 400px; z-index: 5; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: large;'</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>My blog has moved!<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>You should be automatically redirected in 6 seconds. If not, visit<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span><span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'http://yournewblog.wordpress.com/'</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">strong</span>&gt;</span>http://yournewblog.wordpress.com<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">strong</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span><span style="color: #66cc66;">/</span>&gt;</span> and update your bookmarks.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<h2>Avoid Duplicate Content Penalties</h2>
<p>We NoIndexed the blog itself, which was easy enough.  Just throw the following code in between your <strong>head tags</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ROBOTS&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;NOINDEX&quot;</span><span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<h2>Forward Individual Posts</h2>
<p>In order to make every post forward correctly you have to use very specific code.  This code specifically assumes you are using SEO best practice and organizing your posts only by page title.  That means www.yourblog.com/post-title.  If you&#8217;re not, I recommend you head over to <a href="http://procrastiblog.com/2008/07/12/redirecting-blogger-posts-to-wordpress" target="_blank">Procrastiblog</a> as his solution takes into account the Blogger timestamp.  </p>
<p>Look for this code in the Blogger Template:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;b:section <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'main'</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'main'</span> showaddelement<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'no'</span>&gt;</span></pre></div></div>

<p>Enter the following right after you find the above code.  Make sure to replace &#8220;YOUR_BLOG_URL_HERE&#8221; with your new blog address.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>b<span style="color: #339933;">:</span>widget id<span style="color: #339933;">=</span><span style="color: #3366CC;">'Redirector'</span> locked<span style="color: #339933;">=</span><span style="color: #3366CC;">'true'</span> title<span style="color: #339933;">=</span><span style="color: #3366CC;">'Blog Posts'</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">'Blog'</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>b<span style="color: #339933;">:</span>includable id<span style="color: #339933;">=</span><span style="color: #3366CC;">'main'</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>b<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">if</span> cond<span style="color: #339933;">=</span><span style="color: #3366CC;">'data:blog.pageType == &quot;item&quot;'</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>b<span style="color: #339933;">:</span>loop values<span style="color: #339933;">=</span><span style="color: #3366CC;">'data:posts'</span> <span style="color: #003366; font-weight: bold;">var</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'post'</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #3366CC;">'redirectorTitle'</span> style<span style="color: #339933;">=</span><span style="color: #3366CC;">'visibility:hidden'</span><span style="color: #339933;">&gt;&lt;</span>data<span style="color: #339933;">:</span>post.<span style="color: #660066;">title</span><span style="color: #339933;">/&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">var</span> new_domain <span style="color: #339933;">=</span> <span style="color: #3366CC;">'YOUR_BLOG_URL_HERE'</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> utf8_uri_encode<span style="color: #009900;">&#40;</span> str <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> high_code <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> RegExp<span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/[\u0080-\uffff]+/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span>
  new_str <span style="color: #339933;">=</span> str<span style="color: #339933;">;;</span>
  <span style="color: #000066; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span> m <span style="color: #339933;">=</span> high_code.<span style="color: #660066;">exec</span><span style="color: #009900;">&#40;</span> new_str <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    new_str <span style="color: #339933;">=</span> new_str.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span>m<span style="color: #339933;">,</span>encodeURIComponent<span style="color: #009900;">&#40;</span>m<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000066; font-weight: bold;">return</span> new_str<span style="color: #339933;">;;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> title <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'redirectorTitle'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span><span style="color: #339933;">;;</span>
<span style="color: #006600; font-style: italic;">// [INCOMPLETE] Keep percent signs that aren't part of an octet?</span>
title <span style="color: #339933;">=</span> title.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/&amp;lt;[^&amp;gt;]*?&amp;gt;/g</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span> <span style="color: #006600; font-style: italic;">// remove tags</span>
title <span style="color: #339933;">=</span> title.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/&amp;amp;.+?;/g</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span> <span style="color: #006600; font-style: italic;">// remove entities</span>
title <span style="color: #339933;">=</span> utf8_uri_encode<span style="color: #009900;">&#40;</span>title<span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span> <span style="color: #006600; font-style: italic;">// handle UTF-8 characters</span>
title <span style="color: #339933;">=</span> title.<span style="color: #660066;">toLowerCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span>
title <span style="color: #339933;">=</span> title.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/[^%a-z0-9 _-]/g</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span> <span style="color: #006600; font-style: italic;">// remove punctuation</span>
title <span style="color: #339933;">=</span> title.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\s+/g</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'-'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span> <span style="color: #006600; font-style: italic;">// turn spaces into hyphens</span>
title <span style="color: #339933;">=</span> title.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/-+/g</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'-'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span> <span style="color: #006600; font-style: italic;">// collapse runs of hyphens</span>
title <span style="color: #339933;">=</span> title.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/^-+/g</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span> <span style="color: #006600; font-style: italic;">// remove prefixed hyphens</span>
title <span style="color: #339933;">=</span> title.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/-+$/g</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;;</span> <span style="color: #006600; font-style: italic;">// remove suffixed hyphens</span>
<span style="color: #003366; font-weight: bold;">var</span> timestamp <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;data:post.timestamp/&gt;'</span><span style="color: #339933;">;</span>
timestamp <span style="color: #339933;">=</span> timestamp.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
timestamp <span style="color: #339933;">=</span> timestamp<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'/'</span><span style="color: #339933;">+</span>timestamp<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'/'</span><span style="color: #339933;">+</span>timestamp<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> new_page <span style="color: #339933;">=</span> new_domain <span style="color: #339933;">+</span> <span style="color: #3366CC;">'/'</span> <span style="color: #339933;">+</span> title <span style="color: #339933;">+</span> <span style="color: #3366CC;">'/'</span><span style="color: #339933;">;;</span>
document.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span> <span style="color: #339933;">=</span> new_page<span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>b<span style="color: #339933;">:</span>loop<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>b<span style="color: #339933;">:</span>if<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>b<span style="color: #339933;">:</span>includable<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>b<span style="color: #339933;">:</span>widget<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Examples of how this worked for us:</p>
<p>Front page message and HTTP refresh redirect:<br />
<a href="http://libertyinteractive.blogspot.com" target="_blank">http://libertyinteractive.blogspot.com</a></p>
<p>Forwarded Post<br />
<a href="http://libertyinteractive.blogspot.com/2008/03/functionality-before-optimization-web.html" target="_blank">http://libertyinteractive.blogspot.com/2008/03/functionality-before-optimization-web.html</a></p>
<h2>In Conclusion</h2>
<p>While insanely useful, especially for established blogs, one unfortunate thing is that if you had only published on yoursite.blogspot.com and you have many people linking to you, you will not be able to pass on link juice.  Your page rank may suffer as a result.  While you&#8217;ll be able to get your users where you want them to (post by post) and therefore improve bounce rates, you wont get the page rank benefits.  Make sure to remove and noindex your old blog from Google using Google webmaster tools and next time either use a custom domain or don&#8217;t use a hosted solution.  Even Typepad suffers from this. </p>
<p>Thanks to: <a href="http://procrastiblog.com/2008/07/12/redirecting-blogger-posts-to-wordpress/#comment-123" target="_blank">Procrastiblog</a>, and <a href="http://laffers.net/howtos/howto-redirect-blogger-to-wordpress" target="_blank">Laffers.net</a>, as they have by far the most up to date and working examples of this stuff.  They just needed a little more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.libertyinteractivemarketing.com/blog/successfully-forwarding-blogger-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
	</channel>
</rss>

