summaryrefslogtreecommitdiff
blob: bbec7d716e809ff6b40625c168d81f64e28abc2d (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
32
33
34
35
36
37
38
39
40
41
42
43
# 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
^logs$	logview
^logs/([a-z0-9]{6})$	logview	build
^logs/([a-z0-9]{6})/([0-9]+)$	logview	build	task
^logs/([a-z0-9]{6})/([0-9]+)/([0-9]+)$	logview	build	task	page
#^logs/([a-z0-9]{6})/live$	livelog	build
# Build creation
^create$	wizard
^create/([a-zA-Z0-9]{6})$	wizard	build
^create/([a-zA-Z0-9]{6})/([0-9]+)$	wizard	build	step
# Download finished image
^download/([a-zA-Z0-9]{6})$	downloadimage	build
# Session
^login$	login
^login/(.+)$	login	go
^logout$	logout
^logout/(.+)$	logout	go
# Account stuff
^register$	register
^register/([a-zA-Z0-9]{30})$	register	token
^invite$	invite
# 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
# 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