-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.htaccess
57 lines (46 loc) · 1.95 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
52
53
54
55
56
57
AddType text/cache-manifest .manifest
AddType application/x-font-ttf .ttf
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
#Home
RewriteRule ^m/?$ /pages/index.php [L,QSA]
RewriteRule ^ie/?$ /pages/index.php [L,QSA]
RewriteRule ^/?$ /pages/index.php [L,QSA]
#Manifest
RewriteRule ^egg3.manifest/? /pages/egg3.manifest [L]
#Special Timers (fix later)
RewriteRule ^morning/?$ /extra/morning.php [L]
RewriteRule ^pomodoro/?$ /extra/pomodoro.php [L]
RewriteRule ^tabata/?$ /extra/tabata.php [L]
RewriteRule ^pizza/?$ /extra/pizza.php [L]
RewriteRule ^finalcountdown/?$ /extra/finalcountdown.php [L]
RewriteRule ^brushteeth/? /timer/htmlTimer3.php?t=2minutes&l=Be+Thorough [L]
#Meta
RewriteRule ^robots.txt/?$ /pages/robots.txt [L]
RewriteRule ^humans.txt/?$ /pages/humans.txt [L]
#Site Assets
RewriteRule ^scripts/(.+)?$ /pages/scripts/$1 [L,QSA]
RewriteRule ^styles/(.+)?$ /pages/styles/$1 [L,QSA]
RewriteRule ^images/(.+)?$ /pages/images/$1 [L,QSA]
#Oembed
RewriteRule ^oembed/?$ /oembed/oembed.php [L]
#Timers
RewriteRule ^m/([^/\.]+)/until/(.+)/?$ /timer/htmlTimer3.php?t=$1&l=$2 [L,QSA]
RewriteRule ^m/([^/\.]+)/then/(.+)/?$ /timer/htmlTimer3.php?s1=$1&s2=$2 [L,QSA]
RewriteRule ^m/([^/\.]+)/?$ /timer/htmlTimer3.php?t=$1 [L,QSA]
RewriteRule ^ie/([^/\.]+)/until/(.+)/?$ /timer/htmlTimer3.php?t=$1&l=$2 [L,QSA]
RewriteRule ^ie/([^/\.]+)/?$ /timer/htmlTimer3.php?s1=$1&s2=$2 [L,QSA]
RewriteRule ^([^/\.]+)/until/(.+)/?$ /timer/htmlTimer3.php?t=$1&l=$2 [L,QSA]
RewriteRule ^([^/\.]+)/then/(.+)/?$ /timer/htmlTimer3.php?s1=$1&s2=$2 [L,QSA]
RewriteRule ^([^/\.]+)/?$ /timer/htmlTimer3.php?t=$1 [L,QSA]
#Gzipping
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl|jpg|png|gif)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>