forked from apache/ignite-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
196 lines (155 loc) · 7.91 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<IfModule mod_deflate.c>
# Insert filters / compress text, html, javascript, css, xml:
# mod_deflate can be used for Apache v2 and later and is the recommended GZip mechanism to use
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/js
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
# Exception: Images
SetEnvIfNoCase REQUEST_URI \.(?:gif|jpg|jpeg|png)$ no-gzip dont-vary
# Drop problematic browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Make sure proxies don't deliver the wrong content
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 week"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType text/xml "access plus 2 days"
ExpiresByType image/x-icon "access plus 6 months"
ExpiresByType image/jpg "access plus 6 months"
ExpiresByType image/jpeg "access plus 6 months"
ExpiresByType image/gif "access plus 6 months"
ExpiresByType image/png "access plus 6 months"
ExpiresByType image/svg+xml "access plus 6 months"
ExpiresByType application/pdf "access plus 6 months"
ExpiresByType font/eot "access plus 6 months"
ExpiresByType font/opentype "access plus 6 months"
ExpiresByType font/woff2 "access plus 6 months"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|svg)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>
<FilesMatch "\.(xml)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>
<FilesMatch "\.(html|htm|txt)$">
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</FilesMatch>
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|xml|gz|html|ttf)$">
Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
Options +Includes
AddOutputFilter INCLUDES .html
Redirect 301 /download.html /download.cgi
Redirect 301 /news.html /events.html
Redirect 301 /features/java.html /features/multilanguage.html
Redirect 301 /features/dotnet.html /features/multilanguage.html
Redirect 301 /features/cpp.html /features/multilanguage.html
Redirect 301 /features/clientprotos.html /features/multilanguage.html
Redirect 301 /collocatedprocessing.html /features/collocated-processing.html
Redirect 301 /features/durablememory.html /arch/multi-tier-storage.html
Redirect 301 /arch/durablememory.html /arch/multi-tier-storage.html
Redirect 301 /memorycentric.html /arch/multi-tier-storage.html
Redirect 301 /arch/memorycentric.html /arch/multi-tier-storage.html
Redirect 301 /features/persistence.html /arch/native-persistence.html
Redirect 301 /features/deploy.html /arch/clustering.html
Redirect 301 /features/igniterdd.html /use-cases/spark/shared-memory-layer.html
Redirect 301 /use-cases/spark/shared-memory-layer.html /use-cases/spark-acceleration.html
Redirect 301 /use-cases/spark/sql-queries.html /use-cases/spark-acceleration.html
Redirect 301 /use-cases/caching/database-caching.html /use-cases/in-memory-cache.html
Redirect 301 /use-cases/database/in-memory-database.html /use-cases/in-memory-database.html
Redirect 301 /use-cases/database/distributed-database.html /use-cases/in-memory-database.html
Redirect 301 /use-cases/database/sql-database.html /use-cases/in-memory-database.html
Redirect 301 /use-cases/hadoop/mapreduce.html /use-cases/hadoop-acceleration.html
Redirect 301 /use-cases/hadoop/hdfs-cache.html /use-cases/hadoop-acceleration.html
Redirect 301 /features/igfs.html /use-cases/hadoop-acceleration.html
Redirect 301 /features/mapreduce.html /use-cases/hadoop-acceleration.html
Redirect 301 /use-cases/database/key-value-store.html /use-cases/key-value-store.html
Redirect 301 /usecases.html /
Redirect 301 /use-cases/comparison/ignite-for-rdbms.html /
Redirect 301 /use-cases/comparison/ignite-for-nosql.html /
Redirect 301 /features/datagrid.html /use-cases/in-memory-data-grid.html
Redirect 301 /use-cases/platforms/dotnet.html /features/multilanguage.html
Redirect 301 /provenusecases.html /use-cases/provenusecases.html
Redirect 301 /features/datavisualization.html /features/management-and-monitoring.html
Redirect 301 /addons.html /features.html
Redirect 301 /arch/durablememory.html /arch/multi-tier-storage.html
Redirect 301 /features/runseverywhere.html /features/multilanguage.html
Redirect 301 /features/igniterdd.html /use-cases/spark-acceleration.html
Redirect 301 /blogs.html /
Redirect 301 /features/computegrid.html /features/collocated-processing.html
Redirect 301 /use-cases/datagrid.html /use-cases/in-memory-data-grid.html
Redirect 301 /arch/persistence.html /arch/native-persistence.html
Redirect 301 /features/transactions.html /features/acid-transactions.html
Redirect 301 /features/collocatedprocessing.html /features/collocated-processing.html
Redirect 301 /use-cases/hpc.html /use-cases/high-performance-computing.html
Redirect 301 /features/manageandmonitor.html /features/management-and-monitoring.html
Redirect 301 /features/rdbmsintegration.html /features/management-and-monitoring.html
## fixes for 404 reports on GSC
Redirect 301 /Features /features.html
Redirect 301 /Sample /
Redirect 301 /whatisignite-2.html /whatisignite.html
Redirect 301 /use-cases/hadoop/mapreduce /use-cases/hadoop-acceleration.html
Redirect 301 /use-cases/hadoop/hdfs-cache /use-cases/hadoop-acceleration.html
Redirect 301 /use-cases/compare/gemfire.html /
Redirect 301 /use-cases/compare/coherence.html /
Redirect 301 /use-cases/caching/key-value-store /use-cases/key-value-store.html
Redirect 301 /use-cases/caching/key-value-store.html /use-cases/key-value-store.html
Redirect 301 /use-cases/caching/database-caching /use-cases/in-memory-cache.html
Redirect 301 /releases/latest/javadoc/org/apache/ignite/yarn/class-use/IgniteProvider.VersionComparator.html /releases/latest/javadoc/org/apache/ignite/yarn/IgniteProvider.html
## Fix for IGNITE-14392
Redirect 301 /docs/latest/SQL/sql-transactions /docs/latest/SQL/sql-introduction
## Added by new site in 2021
Redirect 301 /in-memory-computing.html /faq.html
Redirect 301 /whatisignite.html /faq.html
Redirect 301 /screencasts.html /events.html
Redirect 301 /meetup-groups.html /events.html
Redirect 301 /docs/latest/index /docs/latest/
Redirect 301 /features/collocated-processing.html /features/compute-apis.html
Redirect 301 /community/resources.html /resources.html
Redirect 301 /community/contribute.html /our-community.html
Redirect 301 /community.html /our-community.html
##
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?ignite.incubator.apache.org$
RewriteRule ^/?(.*)$ https://ignite.apache.org/$1 [L,R=301]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L]
RewriteRule ^releases/latest/(.*)$ /releases/2.14.0/$1 [L]
RewriteRule ^releases/mobile/(.*)$ /releases/latest/javadoc/$1 [R=301,L]
#redirects all 404 pages under api doc path, to it corresponding index
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^releases/(.*)/(javadoc|scaladoc|cppdoc|dotnetdoc)/(.*)$ /releases/latest/$2/ [R=301,L]
#rewrite for user docs .html files
RewriteRule ^docs/?$ /docs/latest/ [R=301,L]
RewriteRule ^docs/latest$ /docs/latest/ [R=301,L]
RewriteRule ^docs/latest/(.*)$ /docs/2.14.0/$1 [L]
#removes trailing slash under docs
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^docs/(.*)/$ /docs/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^docs/(.*)$ /docs/$1.html [NC]
ErrorDocument 404 /404.html