-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
111 lines (92 loc) · 5.18 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
Options +FollowSymLinks -Indexes
ErrorDocument 404 /404.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^search index.php?a=search [QSA]
RewriteRule ^download-wallet index.php?a=wallet-login-required [QSA]
RewriteRule ^active-orders index.php?a=active-orders [QSA]
RewriteRule ^subscribe index.php?a=subscribe [QSA]
RewriteRule ^switch-network index.php?a=switch-network [QSA]
RewriteRule ^resources index.php?a=resources [QSA]
RewriteRule ^stats index.php?a=stats [QSA]
RewriteRule ^faq index.php?a=faq [QSA]
RewriteRule ^about index.php?a=about [QSA]
RewriteRule ^profile index.php?a=profile [QSA]
RewriteRule ^signup index.php?a=signup [QSA]
RewriteRule ^verify/([a-zA-Z0-9_-]+)(|/)$ index.php?a=verify&token=$1 [QSA]
RewriteRule ^categories index.php?a=categories [QSA]
RewriteRule ^collections index.php?a=collections&b=1 [QSA]
RewriteRule ^create-collection index.php?a=create-collection [QSA]
RewriteRule ^create-nft/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)(|/)$ index.php?a=create-nft&collection_id=$1&nft_id=$2 [QSA]
RewriteRule ^create-nft index.php?a=create-nft [QSA]
RewriteRule ^collection/([a-zA-Z0-9_-]+)(|/)$ index.php?a=collection&token_id=$1 [QSA]
RewriteRule ^category/([a-zA-Z0-9_-]+)(|/)$ index.php?a=category&tag=$1 [QSA]
RewriteRule ^assets/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)(|/)$ index.php?a=assets&token_id=$1&nft_id=$2 [QSA]
RewriteCond %{HTTPS} off
# First rewrite to HTTPS: Don't put www. here. If it is already
# there it will be included, if n$# the subsequent rule will
# catch it. RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI}
# [L,R=301] Now, rewrite any request to the wrong domain to use
# www.
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 year"
# Data interchange
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rdf+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/ld+json "access plus 0 seconds"
ExpiresByType application/schema+json "access plus 0 seconds"
ExpiresByType application/vnd.geo+json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
# Favicon (cannot be renamed!) and cursor images
ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 week"
# HTML
ExpiresByType text/html "access plus 0 seconds"
# JavaScript
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
# Manifest files
ExpiresByType application/manifest+json "access plus 1 year"
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Media files
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/bmp "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType image/webp "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# Web fonts
# Embedded OpenType (EOT)
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType font/eot "access plus 1 month"
# OpenType
ExpiresByType font/opentype "access plus 1 month"
# TrueType
ExpiresByType application/x-font-ttf "access plus 1 month"
# Web Open Font Format (WOFF) 1.0
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"
# Web Open Font Format (WOFF) 2.0
ExpiresByType application/font-woff2 "access plus 1 month"
# Other
ExpiresByType text/x-cross-domain-policy "access plus 1 week"
</IfModule>
<ifmodule mod_headers.c>
Header always edit Set-Cookie ^(.*)$ $1;SameSite=None;Secure
</ifmodule>