jeroensangers/jeroensangers/master/.htaccess
# .htaccess for jeroensangers.com
# Author: Jeroen Sangers
# Last modification: 2013-02-27
# Better website experience for IE users
<IfModule mod_headers.c>
Header set X-UA-Compatible "IE=Edge,chrome=1"
<FilesMatch ".(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webm|webp|woff|xml|xpi)$">
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>
# Allow access from all domains for webfonts.
<IfModule mod_headers.c>
<FilesMatch ".(eot|font.css|otf|ttc|ttf|woff)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
# Start rewrite engine
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
</IfModule>
<IfModule mod_rewrite.c>
# Redirect requests for www.jeroensangers.com to jeroensangers.com
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
</IfModule>
# Error documents
ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 410 /410.shtml
ErrorDocument 500 /500.shtml
DirectoryIndex index.html
# Do not rewrite usa-cco.com
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} usa-cco..*
RewriteRule (.*) - [L]
</IfModule>
# Redirect RSS feed
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_USER_AGENT} !(FeedBurner|FeedValidator|MailChimp) [NC]
RewriteRule ^rss/feed/articulos$ http://feedproxy.google.com/JeroenSangers [R,L]
</IfModule>
# Redirect files moved to El Canasto
<IfModule mod_rewrite.c>
RewriteRule ^Servicios/Consultoria-a-distancia http://canasto.es/servicios/consultoria/ [R=permanent,L]
RewriteRule ^Servicios/El-Canasto http://canasto.es/servicios/informacion/ [R=permanent,L]
RewriteRule ^Servicios/2-Minutos-de-Productividad http://canasto.es/servicios/informacion/ [R=permanent,L]
RewriteRule ^Servicios/El-impulso-de-la-manana http://canasto.es/servicios/el-impulso-de-la-manana/ [R=permanent,L]
RewriteRule ^Acerca-de-Jeroen http://canasto.es/acerca-de-el-canasto/ [R=permanent,L]
RewriteRule ^$ index.html [L]
</IfModule>
# Compress static data
<IfModule mod_deflate.c>
# Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)s*,?s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
# Compress all output labeled with one of the following MIME-types
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/html
text/plain
text/x-component
text/xml
</IfModule>
</IfModule>
# UTF-8 encoding
AddDefaultCharset utf-8
AddCharset utf-8 .atom .css .js .json .rss .vtt .xml
# Block access to "hidden" directories or files
<IfModule mod_rewrite.c>
RewriteCond %{SCRIPT_FILENAME} -d [OR]
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule "(^|/)." - [F]
</IfModule>
On Github License
Files