FeedBurner への移転方法

Date
2006-02-19 (Sun)
Category
Tech

管理している sudoyuko.com/blogFeedBurner を利用してみました。まだ使い込んでませんけど(Circulation と Hits の違いって何?Unique Vistor と Hit 数の違いかな?)最初に数字じゃなくて表が出てくるのは面白いですね。Google Analystics もそうだけど。

何処かの blog で移転方法の簡単なアイデアを読んだけど、何処で読んだか忘れたので自分用にメモを作ってみました。でもその前に、

FeedBurner の仕組み

を説明しましょう。技術的には、Feedburner も Feed file 収集(aggregator)サーバーアプリケーションの一種。代表的なものとしては Bloglines とか、はてなRSS とか、Google Reader とかでしょうか。ここに挙げた3つが、どれも

Input
→ Output
各種 Feed ファイル
→ Browser 上で確認できるファイル

の変換に対して、Feedburner は

Input
→ Output
各種 Feed ファイル
各種 Feed ファイル (as Browser 上で確認できるファイル)

という変換をしてくれると云う所。Feed → Feed って意味ないじゃん!と思うかもしれないけれども、僕が思うに利点は以下の3点。

まず、僕の様な弱小blog でも、今や atom.xml のリクエストが一番多いという事実。アルファブロガーとかになっちゃうような人はどうか知りませんが、サイト運用者にとって、転送量は ambivalent な存在。いろんな人に読んで欲しいけど、多すぎるとどうなるのか考えたくない。(もちろんコストを肩代わりしてくれるのだから、何かしらの方法で支払いをするわけですが。。)

読者の便利機能としては、Browser 表示用スタイルと有名サーバー型 Feed Aggregator への講読リンクかな。Feedburner の Output に括弧で“as Browser 上で確認できるファイル”と書いたのはこのこと。ブラウザ用の style なんて技術的には対したこと無いですけど、MT のデフォルトでは当たってないし、これはこれで便利な機能だと思います。

発行者の便利機能は、統計だけど、此の部分でお金を払うと、すごい解析/最適化が使えるらしい。しかし僕は払ってないのでよくわかりません(詳しくは “Why Go Pro?”)。

さてそれでは移転方法

戦略としては以下。

<これまで>

sudoyuko.com/blog → 3種Feed ファイル → 読者 Feed リーダー

<これから>

sudoyuko.com/blog → Atom.xml → FeedBurner → 読者 Feed リーダー

ついでにもうFeed リーダーに登録してくれてる人も FeedBurner 経由にしてもらいたいけれども、その辺はサーバー側でなんとかしたい。これは blog.bulknes.net の “RSS の移転” を参考にする。

具体的なやりかた

1. FeedBurner 用の Feed を設定

MovableType ではデフォルトで、3種類の Feed を作っています。テンプレート管理ページ(メイン・メニュー > [Blog の名前] > テンプレート)より行えます。MT 3.2 になっていると、タブがいくつかありますが、その中で インデックス を選んで(おそらくデフォルト)、以下の3つが Feed 用ファイル。

テンプレート名
出力ファイル名
Atom Index
atom.xml
RSS 1.0 Index
index.rdf
RSS 2.0 Index
index.xml

最初にするのは、FeedBurner だけが収集する Feed ファイルを作ります。僕は深く考えずに Atom を形式を配布することにしました。今ある atom.xml には既に購読者がついているでしょうから、違う名前で作り直すように設定。テンプレート管理ページで、テンプレート名をクリックして、そこで出力ファイル名を適当に付ける。

既存の feed ファイル群も FeedBurner にリンクして欲しいので、各ファイルをクリックして、再構築オプションのチェックを外しておく。

2. FeedBurner で 新規 Feed を作成

新しく作った Feed を登録する。簡単すぎるので割愛。

3. 既存ファイルを 301 で FeedBurner へ Redirect

前述の宮川さんの記事によれば、301 で飛ばせば、ちゃんと Feedリーダー側でなんとかしてくれるらしいので、.htaccess ファイルを作成。mod_alias の Redirect ディレクティブ で設定できる。具体的には、


Redirect permanent /blog/index.rdf http://feeds.feedburner.com/YukoTheSmileGrabber
Redirect permanent /blog/index.xml http://feeds.feedburner.com/YukoTheSmileGrabber
Redirect permanent /blog/atom.xml http://feeds.feedburner.com/YukoTheSmileGrabber

となる。

第一引数に permanent と指定すると 301 Moved Permanently となる。

第二引数は元あった Feed ファイル群。ポイントはドキュメントルートからの絶対パスであるということ。

第三引数は Redirect 先。

あ、chmod 644 .htaccess として属性の変更 644(RW-R--R--)も忘れずに!

4. Index template の作り直し

デフォルトでは Main Index に以下の様な3行が、header 内にある筈

<link rel="alternate" type="application/atom+xml" title="Atom" href="<$MTBlogURL$>atom.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="<$MTBlogURL$>index.rdf" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<$MTBlogURL$>index.xml" />

これらは全部削除して、代わりに

<link rel="alternate" type="application/atom+xml" title="Atom" href="http://feeds.feedburner.com/YukoTheSmileGrabber" />

を挿入しておきます。

Comment:6

LevySamantha:2010-05-21 (Fri) 03:02

If you want to buy a car, you will have to receive the www.lowest-rate-loans.com. Furthermore, my mother commonly utilizes a collateral loan, which supposes to be really firm.

watches replica:2011-09-23 (Fri) 21:16

handbag While discounted pricesbest choice as they can look natural for everyday wearwatch industry by storm with its innovative out.

louis vuitton uk:2012-03-01 (Thu) 20:55

f our machines produce as the international standard, and pass the strict examine and test before sale.

coach outlet online:2012-03-02 (Fri) 00:17

m glad to read the whole content of this blog and am very excited and happy to say that the webmaster has done a very good job here to put all the information content and information at one

Louis Vuitton Outlet:2012-03-05 (Mon) 02:21

Vladimir V. Putin won an Louis Vuitton Outlet in Russia’s presidential election, setting Louis Vuitton Outlet for a more suspenseful confrontation between Mr. Putin and opposition groups.

Chloe Sunglasses:2012-04-13 (Fri) 22:42

Thank you for give very nice info. Your website is coolI am impressed by the information that you have on this site.

Comment Form

Remember Me?


Trackback:1

TrackBack URL for this entry
http://blogs.grf-design.com/mt/mt-tb.cgi/141
Listed below are links to weblogs that reference
FeedBurner への移転方法 from The Croton
FeedBurnerに移行 from お気楽草紙 : 2006-03-10 (Fri) 13:30
以前から気になっていたFeedBurnerなのだが、日本語版がリリースされていたので利用することにした。何がどうということはないのだが、再構築時に動かす...

Return to Page Top