notfound

要求されたURLに対して記事が存在しなかった場合に、404 Not Foundのステータスとページを出力するようにします。

Settings

$flavour_re
記事が無くても404を返したくないフレーバーがある場合に、そのフレーバーの拡張子にマッチする正規表現を設定します。

初期状態では、wikieditishフレーバーに対しては404を返さないようになっています。

 my $flavour_re = '^wikieditish$';

また、以下のテンプレートファイルを利用できます。

content_type.notfound
Not FoundページのContent-Typeを指定します。
page.notfound
Not Foundページ本体を変更することができます。

Template components

page.notfound テンプレートで、以下の変数を利用できます。

$notfound::url
要求されたURL(絶対パス)
$notfound::signature
サーバソフトウェア名、サーバ名、ポート番号からなる文字列("Apache/X.X.XX Server at www.example.com Port 80"のような)

See Also

blosxom plugin: notfound - 徒書

Download

http://www.akatsukinishisu.net/itazuragaki/data/blosxom/notfound/notfound

Last-Modified: 2006-11-21T18:34:44+09:00