-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
34 lines (17 loc) · 932 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
27
28
29
30
31
32
33
34
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase "/trafficapi/"
RewriteRule ^entries/{0,1}$ controllers/entry.php
RewriteRule ^entries/bydate?.+$ controllers/entry.php [L,QSA]
RewriteRule ^entries/(\d+)/{0,1}$ controllers/entry.php?entryID=$1
RewriteRule ^entries/(\d+)/traffic/{0,1}$ controllers/traffic.php?entryID=$1
RewriteRule ^spaces/(\d+)/traffic/bydate?.+$ controllers/traffic.php?spaceID=$1 [L,QSA]
RewriteRule ^spaces/(\d+)/traffic/{0,1}$ controllers/traffic.php?spaceID=$1
RewriteRule ^entries/(\d+)/spaces/(\d+)/traffic/{0,1}$ controllers/traffic.php?spaceID=$2&entryID=$1
RewriteRule ^traffic/{0,1}$ controllers/trafficLabels.php
RewriteRule ^spaces/{0,1}$ controllers/spaces.php
RewriteRule ^feedback/{0,1}$ controllers/feedback.php [L,QSA]
RewriteRule ^feedback/bydate?.+$ controllers/feedback.php [L,QSA]
RewriteRule ^calculate/{0,1}$ controllers/calculate.php
</IfModule>