sereg/mebel/master/.htaccess
php_value display_errors 0
php_flag display_errors Off
Header unset Pragma
FileETag None
Header unset ETag
<FilesMatch "\.(js|css|html|htm|php|xml|)$">
SetOutputFilter DEFLATE
</FilesMatch>
#Turn ETagging on for Booster PHP files
<FilesMatch ".*booster_.+.php$">
FileETag MTime Size
#Give access even if webmaster has globally forbidden access
Order deny,allow
Allow from all
Satisfy any
</FilesMatch>
#Force caching of some common files for some time in the browser's cache, to save bandwidth.
#"Mod_expires" needs to be installed in your Apache server, to use this feature.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
<ifModule mod_headers.c>
<FilesMatch ".(ico|pdf|gif|ico|txt|jpeg)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
<FilesMatch ".(css|js|html|htm)$">
Header set Cache-Control "max-age=88000, private, must-revalidate"
</FilesMatch>
# <FilesMatch ".(php)$">
# Header set Cache-Control "private, no-store, no-cache,must-revalidate, no-transform, max-age=0"
# Header set Pragma "no-cache"
# </FilesMatch>
</ifModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index.php|uploads|robots.txt|favicon.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
On Github License
Files