zmiftah/yiihippo/master/.htaccess
<ifModule mod_rewrite.c>
RewriteEngine On
#RewriteCond $1 ^(index.php|robots.txt|favicon.ico|content)
#RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin/ admin.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin$ admin.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</ifModule>
# 1 YEAR CACHE LENGTH (AGRESSIVE)
<FilesMatch ".(ico|pdf|flv)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>
# 1 WEEK CACHE LENGTH (MODERATE)
<FilesMatch ".(jpg|jpeg|png|gif|swf|xml|txt|css|js)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
On Github License
Files