-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess-EDITME
81 lines (50 loc) · 2.15 KB
/
.htaccess-EDITME
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
75
76
77
78
79
80
81
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteRule ^upload(.*)$ putdata.php$1
RewriteRule ^viewdata/(.*)$ viewdata.php?path=$1
RewriteRule ^viewgroup/(.*)$ viewgroup.php?path=$1
RewriteCond %{REQUEST_METHOD} PUT
RewriteRule ^groups/$ putgroup.php
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^groups/(.*).json$ getgroup.php?path=$1.json
RewriteCond %{REQUEST_METHOD} PUT
RewriteRule ^datastreams/$ putdatastream.php
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^datastreams/(.*).csv?$ getdata.php?path=$1.csv
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^datastreams/(.*).json?$ getdatastream.php?path=$1.json
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^datapoints/(.*).csv?$ getdata.php?path=$1.csv
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^datapoints/(.*).json?$ getdata.php?path=$1.json
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^filter/(.*)/(.*).json?$ processdata.php?script=$1&path=$2.json
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^count/(.*)/(.*).json?$ countdata.php?script=$1&path=$2.json
RewriteCond %{REQUEST_METHOD} PUT
RewriteRule ^photostreams/$ putphotostream.php
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^photostreams/(.*).json?$ getphotostream.php?path=$1.json
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^photos/(.*) getphotos.php?path=$1
RewriteCond %{REQUEST_METHOD} PUT
RewriteRule ^photo/(.*)$ putphoto.php?path=$1
RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^photo/(.*)$ putphoto.php?path=$1
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^photo/(.*) getphoto.php?path=$1
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^account.json(.*)$ getaccount.php$1
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^accounts/(.*).html?$ getaccount.php?name=$1&format=html
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^accounts/(.*).json?$ getaccount.php?name=$1&format=json
RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^accounts/(.*)/?$ getaccount.php?name=$1
RewriteCond %{REQUEST_METHOD} PUT
RewriteRule ^accounts/$ putaccount.php
RewriteCond %{REQUEST_METHOD} PUT
RewriteRule ^accounts$ putaccount.php
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^apps/(.*).json?$ getapp.php?path=$1.json