練習がてら、FuelPHPをドキュメントrootにインストールしている最中で
.htaccessファイルの書き方に手間取ったので、解決方法を。[参考リンク]
http://press.nekoget.com/fuelphp_doc/installation/instructions.html
インストール方法の通りに進めていたのですが、どうも進まず。
赤字を修正した所無事にwelcomeページが表示されました。
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase project_name/public
RewriteRule ^(/)?$ index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
この手のフレームワークの.htaccessの書き方は定型化してるので、
あまり悩まない方が得策ですね。
mod_rewriteの書き方ぐらいは知ってても良いかもしれませんが、
正規表現を一つ一つ追うのはあまり意味がありません。
それでも解決しない場合は下記も参考にしてみて下さい。
[参考リンク]
http://press.nekoget.com/fuelphp_doc/installation/troubleshooting.html#/404_install