MovableType のアーカイブパスのリダイレクト

Movable Type の Individual アーカイブファイルのパスを
/blog/archives/YYYY/MM/DD/foo.php という形式から /blog/archives/YYYY/MM/DD/foo/index.php へ
変更したが、Google などのクローラから旧形式のアーカイブへやってくるトラフィックが Not found になっており、
もうしわけないなぁと思う今日この頃。

URL リダイレクトをかけてみる。

httpd.conf に以下のリダイレクトを追加。

        RedirectMatch permanent /blog/archives/(\d{4})/(\d{2})/(\d{2})/((?:(?!index).)*).php /blog/archives/$1/$2/$3/$4/

index.php はリダイレクト対象から除外して、ループを防止する。

参考:
http://www.din.or.jp/~ohzaki/regex.htm

About this Entry

This page contains a single entry by dxy published on 2006年5月15日 15:15.

Dell PowerVault 124T のハードウェアトラブル was the previous entry in this blog.

Google Trends でブログソフトウェア人気度比較 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 5.01