This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
http_redirects.txt
74 lines (67 loc) · 4.33 KB
/
http_redirects.txt
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Website rewrites.
rewrite ^/users/(\w*)$ /users/index.php?u=$1;
rewrite ^/users/(\w*)/followers$ /users/followers/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/following$ /users/following/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/hearts$ /users/hearts/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/posts$ /users/posts/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/achievements$ /users/achievements/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/report$ /users/report/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/$ /users/index.php?u=$1;
rewrite ^/users/(\w*)/followers/$ /users/followers/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/following/$ /users/following/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/hearts/$ /users/hearts/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/posts/$ /users/posts/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/achievements/$ /users/achievements/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/report/$ /users/report/index.php?u=$1&p=$2;
rewrite ^/posts/(\w*)/edit$ /posts/edit/index.php?u=$1;
rewrite ^/posts/(\w*)/edit/$ /posts/edit/index.php?u=$1;
rewrite ^/posts/create/$ /posts/create/index.php;
rewrite ^/posts/create$ /posts/create/index.php;
rewrite ^/posts/(\w*)/report$ /posts/report/index.php?u=$1;
rewrite ^/posts/(\w*)/report/$ /posts/report/index.php?u=$1;
rewrite ^/posts/(\w*)$ /posts/index.php?u=$1;
rewrite ^/posts/(\w*)/$ /posts/index.php?u=$1;
rewrite ^/internal/posts/(\w*)/edit$ /internal/edit/index.php?u=$1;
rewrite ^/internal/posts/(\w*)/edit/$ /internal/edit/index.php?u=$1;
rewrite ^/internal/(\w*)/edit$ /internal/edit/index.php?u=$1;
rewrite ^/internal/(\w*)/edit/$ /internal/edit/index.php?u=$1;
rewrite ^/internal/users/(\w*)/edit$ /internal/users/edit/index.php?u=$1;
rewrite ^/internal/users/(\w*)/edit/$ /internal/users/edit/index.php?u=$1;
// API has is in the same root directory as the website.
rewrite ^/api/users/(\w*)$ /api/users/index.php?u=$1;
rewrite ^/api/users/(\w*)/followers$ /api/users/followers/index.php?u=$1&p=$2;
rewrite ^/api/users/(\w*)/following$ /api/users/following/index.php?u=$1&p=$2;
rewrite ^/api/users/(\w*)/hearts$ /api/users/hearts/index.php?u=$1&p=$2;
rewrite ^/api/users/(\w*)/posts$ /api/users/posts/index.php?u=$1&p=$2;
rewrite ^/api/users/(\w*)/achievements$ /api/users/achievements/index.php?u=$1&p=$2;
rewrite ^/api/users/(\w*)/followers/(\w*)$ /api/users/followers/index.php?u=$1&p=$2;
rewrite ^/api/users/(\w*)/following/(\w*)$ /api/users/following/index.php?u=$1&p=$2;
rewrite ^/api/users/(\w*)/hearts/(\w*)$ /api/users/hearts/index.php?u=$1&p=$2;
rewrite ^/api/users/(\w*)/posts/(\w*)$ /api/users/posts/index.php?u=$1&p=$2;
rewrite ^/api/users/(\w*)/achievements/(\w*)$ /users/achievements/index.php?u=$1&p=$2;
rewrite ^/api/posts/(\w*)$ /api/posts/index.php?u=$1;
rewrite ^/api/posts/(\w*)/comments$ /api/posts/comments/index.php?u=$1;
rewrite ^/api/posts/(\w*)/comments/(\w*)$ /api/posts/comments/index.php?u=$1&p=$2;
rewrite ^/api/comments/(\w*)$ /api/comments/index.php?u=$1;
rewrite ^/api/comments/(\w*)/replies$ /api/comments/replies/index.php?u=$1;
rewrite ^/api/comments/(\w*)/replies/(\w*)$ /api/comments/replies/index.php?u=$1&p=$2;
rewrite ^/api/replies/(\w*)$ /api/replies/index.php?u=$1;
// API has it's own root directory.
rewrite ^/users/(\w*)$ /users/index.php?u=$1;
rewrite ^/users/(\w*)/followers$ /users/followers/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/following$ /users/following/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/hearts$ /users/hearts/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/posts$ /users/posts/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/achievements$ /users/achievements/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/followers/(\w*)$ /users/followers/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/following/(\w*)$ /users/following/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/hearts/(\w*)$ /users/hearts/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/posts/(\w*)$ /users/posts/index.php?u=$1&p=$2;
rewrite ^/users/(\w*)/achievements/(\w*)$ /users/achievements/index.php?u=$1&p=$2;
rewrite ^/posts/(\w*)$ /posts/index.php?u=$1;
rewrite ^/posts/(\w*)/comments$ /posts/comments/index.php?u=$1;
rewrite ^/posts/(\w*)/comments/(\w*)$ /posts/comments/index.php?u=$1&p=$2;
rewrite ^/comments/(\w*)$ /comments/index.php?u=$1;
rewrite ^/comments/(\w*)/replies$ /comments/replies/index.php?u=$1;
rewrite ^/comments/(\w*)/replies/(\w*)$ /comments/replies/index.php?u=$1&p=$2;
rewrite ^/replies/(\w*)$ /replies/index.php?u=$1;