Silex を使用していくつかのプロジェクトに取り組んでいますが、.htaccess ファイルを動作させることができるプロジェクトはありません。現在のディレクトリ構造はhttp://localhost/IIV/
Silexのフロントファイルはhttp://localhost/IIV/web/index.php
これは私が現在持っているものです:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /IIV/
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l
RewriteRule ^ - [L]
RewriteCond %{DOCUMENT_ROOT}/web/$1 -f
RewriteRule ^(.+?)/?$ /web/$1 [L]
RewriteCond %{DOCUMENT_ROOT}/web/$1 !-f
RewriteRule ^(.+?)/?$ /web/index.php [L]
RewriteRule ^(.+?)/?$ /web/index_dev.php [L]