Don*_*ony 5 performance .htaccess redirect
我计划使用 (301 .htaccess) 重定向大约 100 个,并且想知道这是否会降低性能或产生任何影响,因为文件会变得很重?
.htaccess 中是否有任何类型的条目比其他条目对性能影响更大?
例子:
重定向 301 /old page.shtml http://www.example.com/newdir/newpage.shtml
小智 4
如果可以的话,您可以将指令移至VHost 文件.htaccess中。
Using the VHost will be faster because apache will not read the .htaccess everytime a page is loaded, the VHost will be executed when apache loads.
(参考:将 .htaccess 内容移至 vhost,以提高性能)
| 归档时间: |
|
| 查看次数: |
1480 次 |
| 最近记录: |