formatting, indent projects etc
[dylansserver.git] / .htaccess
1 ErrorDocument 404 /404.php
2
3 RewriteEngine on
4
5 RewriteCond %{HTTPS} off
6 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
7
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]
13
14 RewriteRule ^notes/rss/?$ /index.php?rss=true [L]
15
16 RewriteRule ^git/?$ /git/gitweb.cgi%{REQUESTURI} [L]
17
18 RewriteRule ^captcha/?$ /index.php [L]
19
20 RewriteRule ^note/([^/\.]+)?/?$ /index.php?note=$1 [L]
21 RewriteRule ^note/([^/\.]+)?/comments/?$ /index.php?comments=true&note=$1 [L]
22 RewriteRule ^note/([^/\.]+)?/(comments/)?verify/?$ /index.php?comments=true&verify=true&note=$1 [L]
23
24 RewriteRule ^notes/?$ notes/page/1
25 RewriteRule ^notes/page/?$ notes/page/1
26 RewriteRule ^notes/page/([0-9]+)/?$ /index.php?page=$1 [L]
27
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]
31
32 ## This needs to be last as to avoid catching /notes/ etc.
33 #RewriteRule ^([^/\.]+)$ /index.php?project=$1 [L]
34