penibelst/doktorbro.net/master/source/.htaccess
# http://httpd.apache.org/docs/current/mod/mod_rewrite.html
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Remove "www"
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
</IfModule>
# Errors
# http://httpd.apache.org/docs/current/mod/core.html#errordocument
ErrorDocument 404 /error/404.html
# http://httpd.apache.org/docs/current/mod/mod_expires.html
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType text/html "access plus 1 week"
ExpiresByType application/atom+xml "access plus 1 week"
</IfModule>
# http://httpd.apache.org/docs/current/mod/core.html#fileetag
FileETag none
# Redirect old posts
# http://httpd.apache.org/docs/current/mod/mod_alias.html#redirect
<IfModule mod_alias.c>
RedirectMatch permanent ^/bloknot/(korotkometrajniy.*)$ /2009/$1
RedirectMatch permanent ^/bloknot/(tri.*|edinstvenniy.*|reportazh.*|frankfurt.*|zachem.*|svoboda.*|sudya.*|pezhorativnaya.*|istorii.*|filologicheskie.*)$ /2010/$1
RedirectMatch permanent ^/bloknot/(ded.*|vtoroj.*|zvukach.*|s-nikitoy.*)$ /2011/$1
</IfModule>
# http://httpd.apache.org/docs/current/mod/core.html#adddefaultcharset
AddDefaultCharset utf-8
# Set charset for CSS and JS files
# http://httpd.apache.org/docs/current/mod/mod_mime.html#addcharset
<IfModule mod_mime.c>
AddCharset utf-8 .css .js .atom
</IfModule>
# http://httpd.apache.org/docs/current/mod/mod_deflate.html
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/atom+xml
</IfModule>
On Github License
Files
Download PDF of Htaccess file