-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
executable file
·52 lines (45 loc) · 2.3 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
## .htaccess for Jump Short URL API
##
## @link https://github.com/Chronolabs-Cooperative/Jump-API-PHP
## @author Dr. Simon A. Roberts <[email protected]>
## @package jump-api
## @version 1.2.2
##
##
RewriteEngine On
RewriteCond %{HTTP_HOST} ([a-z0-9]){1,64}.(localhost|snails.email)$
RewriteCond %{REQUEST_URI} ^assets/(media|css|jquery|images)/(.*?)$
RewriteRule ^/(media|css|jquery|images)/(.*?)/(.*?)/(.*?)$ ./assets/$1/$2/$3/$4 [L,NC,QSA]
RewriteRule ^/(media|css|jquery|images)/(.*?)/(.*?)$ ./assets/$1/$2/$3 [L,NC,QSA]
RewriteRule ^/(media|css|jquery|images)/(.*?)$ ./assets/$1/$2 [L,NC,QSA]
RewriteEngine On
RewriteCond %{HTTP_HOST} ([a-z0-9]){1,64}.(localhost|snails.email)$
RewriteCond %{REQUEST_URI} !^(favicon|icon|url).(ico|png|api)$
RewriteCond %{REQUEST_URI} !^(.*?)assets(.*?)$
RewriteCond %{REQUEST_URI} !^(php|json|serial|xml)/(.*?)$
RewriteCond %{REQUEST_URI} ^([a-z0-9]{2})/(.*?)$
RewriteRule ^([a-z0-9]{2})/url.api$ ./index.php?action=url [L,NC,QSA]
RewriteRule ^([a-z0-9]{2})/(.*?)$ ./index.php?action=jump&item=$2&version=$1 [L,NC,QSA]
RewriteEngine On
RewriteCond %{HTTP_HOST} ([a-z0-9]){1,64}.(localhost|snails.email)$
RewriteCond %{REQUEST_URI} !^(.*?)assets(.*?)$
RewriteCond %{REQUEST_URI} !^([a-z0-9]{2})/(.*?)$
RewriteCond %{REQUEST_URI} !^(php|json|serial|xml)/(.*?)$
RewriteCond %{REQUEST_URI} ^(favicon|icon|url).(ico|png|api)$
RewriteRule ^favicon.ico$ ./assets/images/favicon.ico [L,NC,QSA]
RewriteRule ^icon.png$ ./assets/images/icon.png [L,NC,QSA]
RewriteRule ^url.api$ ./index.php?action=url [L,NC,QSA]
RewriteEngine On
RewriteCond %{HTTP_HOST} ([a-z0-9]){1,64}.(localhost|snails.email)$
RewriteCond %{REQUEST_URI} !^(.*?)assets(.*?)$
RewriteCond %{REQUEST_URI} !^([a-z0-9]{2})/(.*?)$
RewriteCond %{REQUEST_URI} !^(favicon|icon|url).(ico|png|api)$
RewriteCond %{REQUEST_URI} ^(php|json|serial|xml)/(.*?)$
RewriteRule ^(php|json|serial|xml)/(.*?)$ ./index.php?action=data&response=$1&item=$2 [L,NC,QSA]
RewriteEngine On
RewriteCond %{HTTP_HOST} (.*?).([a-z0-9]){1,64}.(localhost|snails.email)$
RewriteCond %{REQUEST_URI} ^(php|json|serial|xml)$
RewriteRule ^(php|json|serial|xml)$ ./index.php?response=$1&action=data&subdomain=1 [L,NC,QSA]
RewriteEngine On
RewriteCond %{HTTP_HOST} (.*?).([a-z0-9]){1,64}.(localhost|snails.email)$
RewriteRule ^$ ./index.php?action=jump&subdomain=1 [L,NC,QSA]