Options -Indexes
RewriteEngine on
Options +FollowSymLinks
RewriteRule ^$ 2012/index.php [L]
RewriteCond %{DOCUMENT_ROOT}/2012%{REQUEST_URI} -f
RewriteRule .* 2012/$0 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* 2012/index.php$0 [QSA] #<-- this is wrong here, and gives 500 error
2012 サブフォルダーからすべての URL をサーバーに送信しようとしています。
上記のスクリプトを試してみましたが、次のような URL では失敗します。
index.php/admin/controller/action?id=123
サブフォルダーから解決する必要があります
2012/index.php/admin/controller/action?id=123
なにが問題ですか?