This is an automated email from the ASF dual-hosted git repository.
mauriciostekl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-website.git
The following commit(s) were added to refs/heads/master by this push:
new b665e39 added rewrite url per ticket INFRA-21492 (#78)
b665e39 is described below
commit b665e39e3f18ef00c8436657fa02038cce5a8efe
Author: Mauricio Stekl <[email protected]>
AuthorDate: Thu Mar 4 16:10:53 2021 -0300
added rewrite url per ticket INFRA-21492 (#78)
---
.htaccess | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.htaccess b/.htaccess
index 2f30edc..5e7aad6 100644
--- a/.htaccess
+++ b/.htaccess
@@ -152,6 +152,10 @@ RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L]
+
+RewriteCond %{HTTP_HOST} ^(www\.)?ignite.incubator.apache.org
+RewriteRule ^/?(.*)$ https://ignite.apache.org/$1 [R=301]
+
RewriteRule ^releases/latest/(.*)$ /releases/2.9.1/$1 [L]
RewriteRule ^releases/mobile/(.*)$ /releases/latest/javadoc/$1 [R=301,L]
#redirects all 404 pages under api doc path, to it corresponding index