intersites-inc/justyournotes/master/.htaccess
##############################################################################
# PHP Settings
php_value display_errors 1
php_value session.cookie_httponly 0
php_value session.use_only_cookies 0
php_value session.auto_start 1
php_flag safe_mode_gid 1
php_value memory_limit 256M
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value date.timezone America/Chicago
AddType text/cache-manifest .manifest
##############################################################################
# Redirects
ErrorDocument 401 /errors/error_401.html
ErrorDocument 403 /errors/error_403.html
##############################################################################
# Rewrites
RewriteEngine On
RewriteBase /
# Turn this... /PATH/TO/FILE__HASH.EXT into this... /PATH/TO/FILE.EXT
RewriteRule (.*)/([A-Za-z0-9-_.]+)(__[A-Z0-9]{10}).([A-Za-z0-9]+)$ $1/$2.$4 [L]
############ GZip ############
<IfModule mod_deflate.c>
<FilesMatch ".(js|html|php|css)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
############ Caching ############
Header set Cache-control public
<IfModule mod_expires.c>
ExpiresActive on
# cache Images and CSS for 1 week
ExpiresByType text/css "access plus 1 week"
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
# set the default to 1 week
ExpiresDefault "access plus 1 week"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(ico|jpe?g|png|gif|css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
Header unset ETag
Header unset Last-Modified
</IfModule>
FileETag None
############ CSS thru PHP
# Local
AddType application/x-httpd-php .css
On Github License
Files