-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
26 lines (23 loc) · 888 Bytes
/
.htaccess
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
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase /
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(js|ico|gif|jpg|png|css)$
# processes
RewriteRule ^processes\/$ wiim/api/v1/processes.php [END]
# process
RewriteRule ^processes\/([0-9]+)$ wiim/api/v1/process.php?id=$1 [END]
# tags
RewriteRule ^processes\/([0-9]+)\/tags$ wiim/api/v1/process_tags.php?id=$1 [END]
# timeline
RewriteRule ^processes\/([0-9]+)\/timeline$ wiim/api/v1/process_timeline.php?id=$1 [END]
# tags id
RewriteRule ^tags\/([0-9]+)$ wiim/api/v1/tag.php?id=$1 [END]
# records
RewriteRule ^tags\/([0-9]+)\/records$ wiim/api/v1/tag_records.php?id=$1 [END,QSA]
# test
RewriteRule ^(.*)$ wiim/api/v1/index.php?req=$1 [END]