freezurbern/CrohnsKitchen/master/.htaccess
RewriteEngine on
#php_flag display_startup_errors on
#php_flag display_errors on
#php_flag html_errors on
#php_flag log_errors on
# Stop hotlinking.
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} ^https?://([^/]+)/ [NC]
RewriteCond %1#%{HTTP_HOST} !^(.+)#1$
RewriteRule .(jpg|jpeg|png|gif)$ - [NC,F,L]
# Add Caching.
<FilesMatch ".(ico|jpg|jpeg|png|gif)$">
Header set Cache-Control "max-age=600"
</FilesMatch>
# Custom error pages.
#ErrorDocument 404 template/error/404.html
#ErrorDocument 400 template/error/400.html
#ErrorDocument 401 template/error/401.html
#ErrorDocument 500 template/error/501.html
# Prevent viewing of htaccess file.
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Prevent directory listings
Options All -Indexes
# Compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
On Github License
Files