Fetching contributors…
Cannot retrieve contributors at this time
33 lines (28 sloc) 1.25 KB
# made with help from:
AddOutputFilterByType DEFLATE text/html text/plain application/javascript text/css
ExpiresActive On
ExpiresDefault "access plus 4 hours"
ExpiresByType application/javascript A3600
ExpiresByType application/x-javascript A3600
ExpiresByType text/javascript A3600
ExpiresByType application/json A5
ExpiresByType text/html A90
ExpiresByType text/plain A10
ExpiresByType text/css A3600
<ifmodule mod_expires.c>
<filesmatch "\.(md|json)$">
ExpiresActive on
ExpiresDefault A10
# Handle search engine static file stuff using
# * if you use a subdirectory, like "" you'd change to "RewriteBase /blog/"
# * if you're running your own static generator site, change the domain in RewriteRule
# * if you've changed your config.js `pagePathPrefix` you'll need to change every instance
# of "post/" to your new prefix, e.g. "journal/" or whatever
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(?:[^&]*/)?([^&/]*)
RewriteRule .* "{HTTP_HOST}%{REQUEST_URI}content/&postUrlRoot=http://%{HTTP_HOST}%{REQUEST_URI}#!/post/&post=%1"