Habariはルートディレクトリのファイル数が比較的少ない方ではあるのですがやっぱりルートディレクトリはなるべくファイルを減らしてすっきり整理したいものです。そこで以下のようにインストールすることでHabari本体をサブディレクトリに置いたままルートURLでアクセス出来るようになります。
- 初めにHabariを通常通りサブディレクトリ(例: /habari/)にインストールします。
- /index.php に以下の内容でファイルを作成します。
<?php
include('habari/index.php');
?>
- /.htaccess に以下の内容でファイルを作成します。
RewriteEngine on
RewriteRule ^(system|3rdparty|scripts)/(.*)$ /habari/$1/$2 [L]
RewriteRule ^user/(themes|plugins|files)/(.*)$ /habari/user/$1/$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
Rate It! (Average 0.00, 0 votes)

I do not want for many files to be put on root directory. therefore, I installed Habari by the following methods.
- first, install Habari in the subdirectory (e.g. /habari/).
- create /index.php file in your text editor and save the following line:
<?php
include('habari/index.php');
?>
- create /.htaccess file in your text editor and save the following line:
RewriteEngine on
RewriteRule ^(system|3rdparty|scripts)/(.*)$ /habari/$1/$2 [L]
RewriteRule ^user/(themes|plugins|files)/(.*)$ /habari/user/$1/$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
Rate It! (Average 0.00, 0 votes)


BlogのシステムをWordPressから少し前から気になっていた最近話題のHabariに変えてみました。
外見は変わっていませんが中はこんな感じでかなりシンプルになっています:D
既にLaunchpadにて数多くの言語へ翻訳が進められており、Subversion Head版では一部ではありますが管理画面の言語も日本語に切り替えることが出来ます。
追記 (2008/05/23)
日本語化の方法はLaunchPadのHabariプロジェクトページまたはhttp://ayu.commun.jp/files/habari/habari.moからmoファイルをダウンロード後、/system/locale/ja-jp/LC_MESSAGES/habari.moに配置します。
SVN rev.1800以降の場合は管理ページのオプションからLocaleを「ja-jp」にセットすることで日本語になります。
SVN rev.1693以降の場合はconfig.phpに
$locale= 'ja-jp';
を追加します。
0.4.1の場合はMasayanさんが解説してくださっていますのでそちらをご覧ください。
Rate It! (Average 0.00, 0 votes)
