16
我想知道如果将.htaccess文件内容移动到apache2的虚拟主机文件中,性能是否会增加?将.htaccess内容移到虚拟主机中,以获得性能
这是我的.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>
如果这样做是一个好主意,其中虚拟主机声明我应该将上述内容的内容?
谢谢!