サブディレクトリにJoomlaをインストールする時の.htaccess

他サーバでJoomlaをサブディレクトリにインストールしました。



URLの書き換えにmod_rewriteを使っているため、.htaccessを以下のように記述しました(この記述は、SmartSEF用の.htaccessです)。

RewriteEngine On

RewriteBase /playbeatles
# /の後にサブディレクトリ名を示す

RewriteCond %{REQUEST_URI} ^(/playbeatles/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.atom|\.rss|\.htm|\.php|\.pdf|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php

#/component/option,comの前にサブディレクトリを示す

この設定を適切にしないと、URLがうまく書き換わらず、エラーが出力されるので、注意してください。
 

私も使ってますBBexcite光ブロードバンド

Joomlaなサイト