現象
composerを使ってさくらVPSにcakePHPを導入しました。
ただ、どうやっても表示されません。
InternalServerErrorになります。
エラーログ
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.pr
uri = /webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/
どうやら、.htaccessで無限ループを引き起こしてるっぽいのですが、よくわからないのです。
/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (*) webroot/$1 [L]
</IfModule>
/webroot/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
ここに[RewriteBase /]
をつけても状態は変わりませんでした。
/.htaccessの最後の
RewriteRule (*) webroot/$1 [L]
をコメントにすると、最初の画面は表示されます。
ただ、ルーティングの設定が反映されないようです。
同じような現象を解決された方、もしくはお分かりになる方、お力添えいただけると幸いです。
/webroot
に設定すべきです。