Comments now displayed, and captcha functioning
[dylansserver.git] / .htaccess
1 ErrorDocument 404 /404.php
2
3
4 RewriteEngine on
5
6 RewriteRule ^note/([^/\.]+)?/?$ /index.php?note=$1 [L]
7 RewriteRule ^note/([^/\.]+)?/comments/?$ /index.php?comments=true&note=$1 [L]
8 RewriteRule ^note/([^/\.]+)?/comments/verify/?$ /index.php?comments=true&verify=true&note=$1 [L]
9
10 RewriteRule ^notes/?$ notes/page/1
11 RewriteRule ^notes/page/?$ notes/page/1
12 RewriteRule ^notes/page/([0-9]+)/?$ /index.php?page=$1 [L]
13
14 RewriteRule ^notes/([0-9]{4})/?$ /index.php?year=$1 [L]
15 RewriteRule ^notes/([0-9]{4})/([0-9]{2})/?$ /index.php?year=$1&month=$2 [L]
16 RewriteRule ^notes/([0-9]{4})/([0-9]{2})/([0-9]{2})/?$ /index.php?year=$1&month=$2&day=$3 [L]
17
18 ## This needs to be last as to avoid catching /notes/ etc.
19 RewriteRule ^([^/\.]+)/?$ /index.php?project=$1 [L]
20