- # @version $Id: .htaccess 130 2010-09-29 10:03:56Z jax.hu $
- RewriteEngine on
- RewriteRule ^.*$ index.php
- php_flag magic_quotes_gpc off
- php_flag register_globals on
- php_flag output_buffering on
- # 啟用 Apache 壓縮模組
- <IfModule mod_deflate.c>
- AddOutputFilterByType DEFLATE text/css
- AddOutputFilterByType DEFLATE text/javascript
- AddOutputFilterByType DEFLATE text/js
- AddOutputFilterByType DEFLATE text/xml
- AddOutputFilterByType DEFLATE text/html
- AddOutputFilterByType DEFLATE text/plain
- AddOutputFilterByType DEFLATE image/svg+xml
- AddOutputFilterByType DEFLATE application/xhtml+xml
- AddOutputFilterByType DEFLATE application/xml
- AddOutputFilterByType DEFLATE application/rss+xml
- AddOutputFilterByType DEFLATE application/atom_xml
- AddOutputFilterByType DEFLATE application/x-javascript
- AddOutputFilterByType DEFLATE application/x-httpd-php
- AddOutputFilterByType DEFLATE application/x-httpd-fastphp
- AddOutputFilterByType DEFLATE application/x-httpd-eruby
- AddOutputFilterByType DEFLATE application/postscript
- AddOutputFilter DEFLATE html htm xml css js svg
- # properly handle requests coming from behind proxies
- <IfModule mod_headers.c>
- Header append Vary User-Agent
- </IfModule>
- </IfModule>
參考來源:
mod_deflate - Apache HTTP Server:
mod_deflate - Apache 2.2 中文版参考手册
[Apache] 壓縮你的網頁 – mod_deflate/mod_gzip、ob_gzhandler、zlib | 阿駕零零壹 © 學習筆記:
0 回應:
張貼留言