forked from pepperonipizzahack/workingcopyapp.github.io
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
54 lines (47 loc) · 1.84 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
## EXPIRES CACHING ##
## EXPIRES CACHING ##
## Compression
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
ErrorDocument 404 /404.html
<Files apple-app-site-association>
ForceType application/json
</Files>
AddType application/rss+xml .rss
# Redirect /g/ %{ENV:ps}://%{SERVER_NAME}/git/
RewriteEngine On
RewriteBase "/"
# redirect http to https
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule "^x-callback-url\.html$" "url-schemes.html"
RewriteRule "^review-count$" "review-count.php"
RewriteRule "^privacy$" "privacy.html"
RewriteRule "^enterprise-upgrade$" "https://itunes.apple.com/us/app-bundle/id1356136222?mt=8&at=1000lHq"
RewriteRule "^users-guide$" "manual.html"
RewriteRule "^synology$" "https://youtu.be/WMcAcUknHMw"
RewriteRule "^sshinfo$" "https://workingcopyapp.com/manual.html#ssh-host-info" [NE]
## Forbid access to certificate file
RewriteCond %{REQUEST_FILENAME} ^.+\.pem$
RewriteRule .* - [F,NS,L]