2 Star 6 Fork 2

辰辰徐徐 / YouYaX_PHP原创型论坛

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.htaccess 957 Bytes
一键复制 编辑 原始数据 按行查看 历史
xujinliang 提交于 2021-12-13 08:50 . 发布源代码
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Indexes -MultiViews
RewriteEngine On
RewriteRule cache/(.*) - [F]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
#Image and Flash content Caching for One Month
<IfModule mod_deflate.c>
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|php|html|htm|xml)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
</IfModule>
## Enables gzip compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|iso|tar|bz2|sit|rar|png|jpg|gif|jpeg|flv|swf)$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.[0678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent env=!dont-vary
</IfModule>
1
https://gitee.com/youyax/you-ya-x--php-original-forum.git
git@gitee.com:youyax/you-ya-x--php-original-forum.git
youyax
you-ya-x--php-original-forum
YouYaX_PHP原创型论坛
master

搜索帮助