update doctype, pgp key url, add piwik analytics
[dylansserver.git] / .htaccess
1 ErrorDocument 404 /404.php
2
3
4 RewriteEngine on
5
6 RewriteRule ^resume$ /res.pdf [L]
7 RewriteCond %{HTTPS} off
8 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
9
10 RewriteRule ^notes/rss/?$ /index.php?rss=true [L]
11
12 RewriteRule ^git/?$ /git/gitweb.cgi%{REQUESTURI} [L]
13
14 RewriteRule ^captcha/?$ /index.php [L]
15
16 RewriteRule ^note/([^/\.]+)?/?$ /index.php?note=$1 [L]
17 RewriteRule ^note/([^/\.]+)?/comments/?$ /index.php?comments=true&note=$1 [L]
18 RewriteRule ^note/([^/\.]+)?/(comments/)?verify/?$ /index.php?comments=true&verify=true&note=$1 [L]
19
20 RewriteRule ^notes/?$ notes/page/1
21 RewriteRule ^notes/page/?$ notes/page/1
22 RewriteRule ^notes/page/([0-9]+)/?$ /index.php?page=$1 [L]
23
24 RewriteRule ^notes/([0-9]{4})/?$ /index.php?year=$1 [L]
25 RewriteRule ^notes/([0-9]{4})/([0-9]{2})/?$ /index.php?year=$1&month=$2 [L]
26 RewriteRule ^notes/([0-9]{4})/([0-9]{2})/([0-9]{2})/?$ /index.php?year=$1&month=$2&day=$3 [L]
27
28 ## This needs to be last as to avoid catching /notes/ etc.
29 RewriteRule ^([^/\.]+)/?$ /index.php?project=$1 [L]
30