-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
executable file
·39 lines (32 loc) · 1.61 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
## .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 %{HTTP_HOST} ([a-z0-9]){1,64}.(localhost|snails.email)$
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 %{HTTP_HOST} ([a-z0-9]){1,64}.(localhost|snails.email)$
RewriteCond %{REQUEST_URI} ^assets/(.*?)$
RewriteRule ^/(media|css|jquery|images)/(.*?)/(.*?)/(.*?).(.*?)$ ./assets/$1/$2/$3/$4.$5 [L,NC,QSA]
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]
RewriteEngine On
RewriteCond %{HTTP_HOST} !(.*?).([a-z0-9]){1,64}.(localhost|snails.email)$
RewriteCond %{HTTP_HOST} ([a-z0-9]){1,64}.(localhost|snails.email)$
RewriteCond %{REQUEST_URI} !^assets/(.*?)$
RewriteCond %{REQUEST_URI} !^([a-z0-9]{2})/(.*?)$
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)$
RewriteRule ^$ ./index.php?action=jump&subdomain=1 [L,NC,QSA]