從Blogger搬到WordPress教學
Wednesday, January 2nd, 2008
總於拿起勇氣和毅力,自己裝一個WordPress,正式從http://sam0737.blogspot.com/搬過來。問題是,之前慣用的Blogspot Blogger文章和戶口怎麼辦?別人再訪問Blogspot上的文章又會怎樣?可以保留Permalinks嗎?在Google上面的PageRank也可以轉移嗎?
WordPress v2.x本身有一個Importing的工具,但這只能解答第一個問題。
另,即使你是用自己的Domain掛上Blogger,而不是用Blogspot,但現在要轉過去WordPress,這個教學也適用的。
WordPress的設計還真是貼心,只要自己動一下手的話,一切都迎刃而解。以下我會用我情況作例子,我原來的Blogspot網址為http://sam0737.blogspot.com,而我想把它統統遷往http://hellosam.net/的WordPress上。
把Blogger上的文章拷下來
匯入Blogger的方法在http://codex.wordpress.org/Importing_Content#Blogger上已經有介紹過。基本上只要在控制版面跟指示做就好了。
因為匯入的標籤(Tag)都會解讀成個分類(Category),你大概會想在把它們都轉成真正的Tag。這一步可以利用在控制版面Manage下的Categories的category to tag converter,這個工具就可以把Category統統轉成Tag。
人流導往新網址、保留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/上新的網址。
裝好Blogger Redirector回在Blogger上自訂義域名的事情上。只要登入後在相關的Blog的Settings中,在Publishing下打開Advanced Settings的功能,跟它說我們已經有一個域名要掛上去,就可以。設定好之後,打開瀏覽器到http://sam0737.blogspot.com/就會轉跳到http://hellosam.net/上。
Google的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,所以全然沒有問題。
這個教學和插件管用嗎?請支持一下!
更新
現在Blogger好像已經不會用HTTP 301來做轉移,而是用一個HTML Page,所以即使按以上步驟設定,還是不能夠將PageRank轉過來的。可幸的是URL重寫功能沒有受影響。
總結
就這樣,透過WordPress的匯入機制、Blogger的自訂義域名和Blogger Redirector插件,在http://sam0737.blogspot.com/上的文章、回應、網址等等都全盤可以順利指向http://hellosam.net/,我們可以在Google上搜”site:sam0737.blogspot.com”,每一條連結都自動引導向正確的http://hellosam.net/網址上,大大減低了換Blog對到訪者的不便和對人流的影響。
若對此教學有任何疑問,請在此回應,謝謝。謹祝搬遷愉快。































































中文
粵語
January 7th, 2009 at 22:53
izLe5C3DvVWJd
January 6th, 2009 at 20:31
great tutorial, mine also migrating blog platform from blogspot to wordpress
awesome post.
thanks
January 5th, 2009 at 22:58
Sabac, the multi-language functionality is in fact brought to you by another plugin I proudly make. See http://hellosam.net/project/xlanguage.
January 5th, 2009 at 22:44
I can see Other language son the blog and it is biggest thing for me. For the same reason i have Drupal for many of my blogs but I am wondering to see that how you are able to manage it in Wordpress. I’ll love it if you could share your language plugins with us.
December 22nd, 2008 at 11:01
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
December 11th, 2008 at 22:31
The biggest problem for me was to restore all those permalinks. It is really difficult to fix them even on wordpress itself. I am pretty uncomfortable with that.
December 9th, 2008 at 0:17
Hey, great post there! Im first time here visited your blog, definitely will visit back later, keep it up
November 28th, 2008 at 23:31
i’ve read it up and now have to plan move my blog to wordpress, thank for the post
November 25th, 2008 at 9:03
Great, now I can transfer all 47 blogs over, thanks for all the work! LOL
November 25th, 2008 at 8:55
I finally found something to help me get this done!
Thankyou for explaining the Permalinks and the 301 redirect.
September 30th, 2008 at 11:44
請問一下,我目前用 WordPress2.6.2
無法匯入 blogger 的文章
都要我確認作者,但是完全沒有匯入任何東西
然後就停了
請問哪裡有問題嗎??
謝謝
September 27th, 2008 at 12:03
I am just starting to switch to wordpress myself and reading up. thanks for the info