從Blogger搬到WordPress教學|Migrating from Blogger to WordPress (Tutorial)

Wednesday, January 2nd, 2008

總於拿起勇氣和毅力,自己裝一個WordPress,正式從http://sam0737.blogspot.com/搬過來。問題是,之前慣用的Blogspot Blogger文章和戶口怎麼辦?別人再訪問Blogspot上的文章又會怎樣?可以保留Permalinks嗎?在Google上面的PageRank也可以轉移嗎?

WordPress v2.x本身有一個Importing的工具,但這只能解答第一個問題。

另,即使你是用自己的Domain掛上Blogger,而不是用Blogspot,但現在要轉過去WordPress,這個教學也適用的。

Finally it comes to time to setup my own Blog/CMS, and I picked WordPress, and moving my http://sam0737.blogspot.com/ to here. The problem is, for my old blog on Blogspot by Blogger, how should I move the posts and comments? What if people visit the my Blogspot? How could I preserve the permalinks? Could I also transfer the PageRank that I built up in Google?

WordPress v2.x has an blog importing tool. It would only solve the first problem, however.

The walk-through here will also work in case you are moving from Blogger that used your own domain name but not from Blogspot.

WordPress的設計還真是貼心,只要自己動一下手的話Luckily, with the flexibility provided by WordPress framework, there are solutions for all the questions!,一切都迎刃而解。以下我會用我情況作例子,我原來的Blogspot網址為http://sam0737.blogspot.com,而我想把它統統遷往http://hellosam.net/的WordPress上。 I will use my own story as an example below, my original Blogspot was on http://sam0737.blogspot.com/, and now I want to migrate to the WordPress on http://hellosam.net/.

把Blogger上的文章拷下來

Importing posts from Blogger

匯入Blogger的方法在http://codex.wordpress.org/Importing_Content#Blogger上已經有介紹過。基本上只要在控制版面跟指示做就好了。

因為匯入的標籤(Tag)都會解讀成個分類(Category),你大概會想在把它們都轉成真正的Tag。這一步可以利用在控制版面Manage下的Categories的category to tag converter,這個工具就可以把Category統統轉成Tag。

http://codex.wordpress.org/Importing_Content#Blogger has already plotted out how one could import the data from Blogger. Basically, just follow the on-screen instruction from the admin panel and you are all good.

Actually not quite…Because the imported tags will appears as categories here, you might want convert them back to tags in WordPress. It can be fixed easily, you will find the conversion tool “category to tag converter” under “Manage, Categories”

人流導往新網址、保留Permalinks

Redirect the people, keep the permalinks

這才是大家關注的重點。問題是網上有很多連往自己的Blog的連結,絕對無辦法讓他人更新,還有就是搜尋器等都要一段時間才會更新過來,要減低人流損失,還得要做下點工夫。首先,Blogger是可以容許你使用自己的Domain,雖然本來的用意是要把域名指往Blogger上,與我們這個情況稍有出入,但重點是這個功能會把所有流向http://sam0737.blogspot.com/的人流重新定向至http://hellosam.net/上。

但在開啟這個功能前,我們必先確保http://hellosam.net/這邊的WordPress可以接受到Blogspot的Permlinks格式。

可幸的是剛才用到的WordPress的匯入工具會保留Blogspot上用過的Permalinks資料,只要動一動指頭,還是可以做的。答案就是用.htaccess來堆砌而達成……在寫這篇Blog的時候,突然發然何不利用Plugin用乾淨的手法來解決?所以最終一不做、二不休、就寫了一個WordPress插件,利用Blogger Redirector這個插件,就可以自動辨認出從http://sam0737.blogspot.com/轉跳過來的Permalinks格式,從而再定向至正確至http://hellosam.net/上新的網址。

And this is what everyone wants to know, right? The problem is that there are zillions of links and trackbacks pointed to our blog already, and it’s impossible to notify all of them, let’s not mention how we could expect them to update. On the other hand, the search engines would take a long time to re-crawl and update their database. To minimize the impact to traffic, we have to do something.

First, Blogger allows you to park your very own domain on their Blogspot service. Although the design of this feature is to point the DNS CNAME record to their Blogspot server, which is not quite the same in our case; The main point is that we would be benefits from the auto redirection comes with this feature—When enabled, it will redirects everything under http://sam0737.blogspot.com/ to http://hellosam.net/.

Before you enable this handy feature, let’s make sure our http://hellosam.net/ could accept the Blogspot’s permalinks format.

Luckily, the WordPress importing tools we just used will preserve the Blogspot’s permalinks information, and we could do something about it. The answer is to hack the .htaccess…At this point of writing, I just discovery why don’t me come up with much cleaner solution with Plugin, and publicizing it? So I did and created Blogger Redirector. It could auto-detect the redirection from http://sam0737.blogspot.com/ permalinks, and redirect the users to the new and correct URL on http://hellosam.net/!

Blogger Custom Domain Name

裝好Blogger Redirector回在Blogger上自訂義域名的事情上。只要登入後在相關的Blog的Settings中,在Publishing下打開Advanced Settings的功能,跟它說我們已經有一個域名要掛上去,就可以。設定好之後,打開瀏覽器到http://sam0737.blogspot.com/就會轉跳到http://hellosam.net/上。

After installing Blogger Redirector, let’s go back to the Blogger and plug our domain in. Go to the Blog’s Settings page after login, you will find the options under Publishing tab. We want to turn on the Advance settings here, telling Blogger that we have own a domain and want to use it on their service. If you have configured it correctly, open a new browser and point to http://sam0737.blogspot.com/, it should be redirected to http://hellosam.net/ by now. Cool!

Google的PageRank又怎麼辦?

How about Google’s PageRank?

聽說只要用HTTP 301 (Moved Permanently) 的方法去做重定向,大部份的Search Engine就會明白是怎麼的一回事,包括Google上的PageRank的說。

打開了 Blogger的自定義域名的話,指向http://sam0737.blogspot.com/的HTTP請求就會被Blogger用HTTP 301重定向至http://hellosam.net/這邊,而之後Blogger Redirector在偵測到Blogspot的Permalinks也會用HTTP 301重定向至當前WordPress的新Permalinks,所以全然沒有問題。

I have heard that if the redirection is done using “HTTP 301 (Moved Permanently)”, most search engines will understand what’s going on, including the Google’s PageRank.

After hooking the domain to Blogger, all the HTTP requests pointed to http://sam0737.blogspot.com/ will be redirected to http://hellosam.net/ by Blogger server using HTTP 301. And on this side, when the Blogger Redirector detected the incoming Blogspot’s permalink request, it will also use HTTP 301 to redirect to the new and updated permalinks on http://hellosam.net/. All in all, the puzzle is completed and finished.

這個教學和插件管用嗎?請支持一下!

Like this guide and plugin? Please consider supporting it.

更新

Update

現在Blogger好像已經不會用HTTP 301來做轉移,而是用一個HTML Page,所以即使按以上步驟設定,還是不能夠將PageRank轉過來的。可幸的是URL重寫功能沒有受影響。

It looks like Blogger won’t do a HTTP 301 for redirection now, it uses an plain HTML to lead the user instead. In other words, there is no way to safely transfer the PageRank.

Good thing is that the plugin still could rewrite the Blogger’s styled URL to WordPress format, correctly redirecting the users to destinated WordPress page.

總結

Wrap up

就這樣,透過WordPress的匯入機制、Blogger的自訂義域名和Blogger Redirector插件,在http://sam0737.blogspot.com/上的文章、回應、網址等等都全盤可以順利指向http://hellosam.net/,我們可以在Google上搜”site:sam0737.blogspot.com”,每一條連結都自動引導向正確的http://hellosam.net/網址上,大大減低了換Blog對到訪者的不便和對人流的影響。

若對此教學有任何疑問,請在此回應,謝謝。謹祝搬遷愉快。

Now with the helps from WordPress importing tools, Blogger’s custom domain hook-up and Blogger Redirector plugin, the posts, comments and permalinks on http://sam0737.blogspot.com/ has been completed redirected to http://hellosam.net/. Now we might try to search “site:sam0737.blogspot.com” on Google, happily finding out that everything old links just work as it should. It surely does reduce the inconvenience and confusion caused to visitors to minimum.

If you have any questions to me, please raise it below. I hope you will have a happy time migrating your blog.

95 Responses to “從Blogger搬到WordPress教學|Migrating from Blogger to WordPress (Tutorial)”

Pages: [4] 3 2 1 » Show All

  1. 95
    perrywinkles21 Says:

    The information is very helpful to me. Thanks!!!!!

    word press is very efficient…

    hI TO EVERYONE IN THIS SITE

    wow great DEALS – BID 4 BARGAIN
    BlockBuster Deals – the BARGAIN pOst

    This is also very important!! Great SAVINGS AND PRICES AT ALL LOW COSTS!

    I like the website which sells all the goods and properties at a low cost. All should come and visit this!!!!

    Bid 4 Bargain- USA Auctions Inc.
    Auction, Bargains, Bids, Good and properties for sale

    The online auctions market place to sell all your goods and properties.
    Real estate foreclosures auctions, FIND DEALS, MaKE MONEY, NYC
    THIS WEBSITE YOU CAN MAKE MONEY OFF OF!

    Bids and Auctions

    Our main office is located at Garden City, New York.

    Our mailing addresses are:
    USA AUCTIONS inc.
    734 Franklin Ave
    Suite 631
    Garden, City New York 11530.

    or

    USA AUCTIONS inc.
    175 Fulton Ave., Suite 308
    Hempstead, NY 11550.

    Tel: (516) 280-8432
    Fax: (516) 750-8388

  2. 94
    depression glass Says:

    Depression style glassware is available in a variety of common kitchen and dining pieces including cake plates, serving bowls, butter dishes, fruit bowls, pitchers and tumblers. Together or as a stand alone piece, these items can be used to create or enhance a beautiful theme on your dining room table. Popular patterns are Thistle, Inverted Thistle, Diamond Cut, Sawtooth, Inverted Strawberry and Elizabethan.

  3. 93
    salle mariage Says:

    This information is some of the best I have found on this topic for me, I really appreciate this point of view and I’ve found it to be more reliable then some, I will be recommending it to others.

  4. 92
    ForexClub Says:

    Você já conhece o FOREX CLUB?
    É muito fácil negociar com a gente!
    ]ENTRE E ABRA AGORA SUA CONTA
    http://www.fxclub-brasil.com/open-demo/

  5. 91
    Surfrider Says:

    Trying to clarify. The information is great and the plug-in sounds marvelous. But need to clarify…As I too am migrating from Blogspot to self-hosted WP, and I have already chosen and installed a template, I need to migrate the photos, posts, comments, etc from Blogspot to WP. I don’t want a re-direct. I just want the content transferred over and then cancel the blogger account. Will this plug-in support that? And, is this feasible, or do I have to have a re-direct?

  6. 90
    pinnapedia » Blogger vs Joomla vs WordPress part 2 Says:

    [...] wasn’t that much of a challenge either, I found this blog: http://hellosam.net/lang/en/post/397. That’s really all you need. Instead I will tell you what remains to be [...]

  7. 89
    Andrew Peltzer Says:

    Very helpful post. Very clear commentary and suggested phrasing are most impressive, as are his and your generosity in sharing this explanation and example

  8. 88
    Catherine Vibert Says:

    I installed the plugin and I have migrated all my posts per your instructions. Sadly, blogger will not accept my redirect and I can not figure out how to congfigure the CName so it works. Do you have any ideas for this? Because it seems like it is key.

  9. 87
    Jhons Says:

    Yeah i aggree whit the guys above .:D

  10. 86
    Online Shopping Says:

    Nice post! I loved it your way of information.. I need more tips for this.. Can you provide more information for this? I am waiting your information…

  11. 85
    short stories for kids Says:

    keep it up this nice sharing with ahve a geat idea about this nice topic.

  12. 84
    Book App Says:

    Although the design of this feature is to point the DNS CNAME record to their Blogspot server, which is not quite the same in our case; The main point is that we would be benefits from the auto redirection comes with this feature…

    Thanks and Regards

  13. 83
    blood pressure control Says:

    Thanks for this nice sharing….it is really nice post with have a good article……..

  14. 82
    barter firmalari Says:

    I’ve installed your plugin, but am afraid to lose all my posts when I migrate, will it work for me?

  15. 81
    Rhea Segraves Says:

    Hallo Webmaster Ich mag Ihre Nachricht ….

  16. 80
    jeff Says:

    Hey,
    Great post. I kinda stumbled upon your blog and now I’ve added it to my bookmarks. Interesting stuff.
    Best,
    Jeff

    Williamsville NY plastic surgeon

  17. 79
    Nikhil Says:

    Thanks for such a great post.

  18. 78
    Aaron Ortiz Says:

    I already have a custom domain set up in blogger, but I want to move to wordpress. My current blogger blog points to blog.aeortiz.com

    I’ve installed your plugin, but am afraid to lose all my posts when I migrate, will it work for me?

  19. 77
    Scissor Says:

    It surely does reduce the inconvenience and confusion caused to visitors to minimum.

  20. 76
    Freshgirls Says:

    you have good informatin about being transform from the blogger to word press

Pages: [4] 3 2 1 » Show All

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Subscribe without commenting