1 ErrorDocument 404 /404.php
5 RewriteCond %{HTTPS} off
6 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
8 RewriteRule ^analytics$ /piwik [L]
9 RewriteRule ^id$ /id_rsa.pub [L]
10 RewriteRule ^pubkey.pgp.asc$ /dylan@dylansserver.com.pubkey.asc [L]
11 RewriteRule ^cellular-automata/?$ /cellular-automata/index.php [L]
12 RewriteRule ^resume/?$ /resume.pdf [L]
14 RewriteRule ^notes/rss/?$ /index.php?rss=true [L]
16 RewriteRule ^git/?$ /git/gitweb.cgi%{REQUESTURI} [L]
18 RewriteRule ^captcha/?$ /index.php [L]
20 RewriteRule ^note/([^/\.]+)?/?$ /index.php?note=$1 [L]
21 RewriteRule ^note/([^/\.]+)?/comments/?$ /index.php?comments=true¬e=$1 [L]
22 RewriteRule ^note/([^/\.]+)?/(comments/)?verify/?$ /index.php?comments=true&verify=true¬e=$1 [L]
24 RewriteRule ^notes/?$ notes/page/1
25 RewriteRule ^notes/page/?$ notes/page/1
26 RewriteRule ^notes/page/([0-9]+)/?$ /index.php?page=$1 [L]
28 RewriteRule ^notes/([0-9]{4})/?$ /index.php?year=$1 [L]
29 RewriteRule ^notes/([0-9]{4})/([0-9]{2})/?$ /index.php?year=$1&month=$2 [L]
30 RewriteRule ^notes/([0-9]{4})/([0-9]{2})/([0-9]{2})/?$ /index.php?year=$1&month=$2&day=$3 [L]
32 ## This needs to be last as to avoid catching /notes/ etc.
33 #RewriteRule ^([^/\.]+)$ /index.php?project=$1 [L]