summaryrefslogtreecommitdiff
path: root/blob/nginx_rewrite_rules
blob: 950ae786a7b80299a9d86888affba511a57a4c2f (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
location /robots.txt {}

location ~* ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {
	rewrite ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)?    	/index.php?task=login&arguments=$1 last;
}

location ~* ^/?logout([?/]?.*) {
	rewrite ^/?logout([?/]?.*)                              /index.php?task=logout&arguments=$1 last;
}


location ~* ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {
	rewrite ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)?	/index.php?task=register&arguments=$1 last;
}

location ~* ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {
	rewrite ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)?	/index.php?task=invite&arguments=$1 last;
}

location ~* \.php(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {}		#empty block to catch all

location / {
	rewrite ^/([0-9a-zA-Z-_]*)/(.*)				/index.php?name=$1&folder=$2 last;
	rewrite ^/([0-9a-zA-Z-_]*)				/index.php?name=$1&folder=$2 last;
	break;
}