This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/incubator-linkis-website.git
The following commit(s) were added to refs/heads/asf-staging by this push:
new 277ec4a62 Update .htaccess
277ec4a62 is described below
commit 277ec4a6214051c15d41d6c1a5c74df22c3a0d89
Author: Casion <[email protected]>
AuthorDate: Thu May 26 21:13:38 2022 +0800
Update .htaccess
---
.htaccess | 32 ++------------------------------
1 file changed, 2 insertions(+), 30 deletions(-)
diff --git a/.htaccess b/.htaccess
index d1de280cb..1fabd4a7f 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,35 +1,7 @@
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.13.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.13.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]
-
-
+RewriteRule ^older/(.*)$ 1.1.0/$1 [L]
+RewriteRule ^/docs/older/(.*) https://linkis.apache.org/docs/1.0.3/$1
[R=301,L,NE]
ErrorDocument 404 /404.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]