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

commit 43db81866025cf14e97cac7b2987d6adf6a670bb
Author: Mauricio Stekl <[email protected]>
AuthorDate: Mon Mar 15 15:52:26 2021 -0300

    added rule to force non trailing slashes under docs
---
 .htaccess | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.htaccess b/.htaccess
index 73e71c1..52cd3b3 100644
--- a/.htaccess
+++ b/.htaccess
@@ -164,10 +164,16 @@ 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.9.1/$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]
\ No newline at end of file

Reply via email to