.htaccess ファイルの内容を apache2 の vhost ファイルに移動すると、パフォーマンスが向上するかどうか疑問に思っていました。
これは私の .htaccess の内容です
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_NAME} ^([^.]+\.[^.]+)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
そうすることが良い考えである場合、vhost 宣言のどこにコンテンツの上に置くべきですか?
ありがとう!