summaryrefslogtreecommitdiff
blob: 96bfbdce265482dedcb7225a115aacdfa4b35d5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This file is a comma-separated set of rules for matching URLs to the pages they refer to.  Rows are tried in order The following syntax is expected of each row:
# Col 1: regexp to match
# Col 2: page to use
# [Col 3: varname for subexpr 1]
# [Col 4: varname for subexpr 2]
# [Col 5: varname=static value 1]
# [Col 6: varname=static value 2]
# #-ed lines are ignored.
# Something like the following line should always be last to catch unrecognized URLs
# ^	404

# Home
^$	welcome
^logs$	logview
^logs/task([0-9]+)$	logview	task
^hardreset$	hardreset
^newclass$	newclass
# Session
^login$	login
^logout$	logout
# Pass through
^(js)/([0-9a-zA-Z-_]+\.(js))$	passthrough	dir	file	ext
^(images)/([0-9a-zA-Z-_]+\.(gif|jpg|jpeg|ico))$	passthrough	dir	file	ext
# Recording/download just sets the download setting and filename before handing off to passthrough
^(recordings)/([0-9]+\.(mp3))$	recording/download	dir	file	ext
# Replace xinha with a directory name to turn it into fairly normal handling like without all this crazy redirecting
#^(xinha(?=/)[0-9a-zA-Z-_./]*).(?<=/)([0-9a-zA-Z-_.]+\.([a-zA-Z0-9]+))$	passthrough	dir	file	ext
# CSS
^style.css$	stylesheet
# This is the catch-all - never remove it
^	404