This is an automated email from the ASF dual-hosted git repository.

guoqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 1abadbe3a74 Revert "fix: rm trailing slash (#1083)" (#1086)
1abadbe3a74 is described below

commit 1abadbe3a7433356b8319278e57f2bd6e27f6d20
Author: 琚致远 <[email protected]>
AuthorDate: Thu May 12 14:57:35 2022 +0800

    Revert "fix: rm trailing slash (#1083)" (#1086)
---
 .htaccess                    | 14 +-------------
 website/docusaurus.config.js |  1 -
 2 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/.htaccess b/.htaccess
index d6b5b81df68..0418b600dfc 100644
--- a/.htaccess
+++ b/.htaccess
@@ -26,16 +26,4 @@ ErrorDocument 404 /404.html
     ExpiresByType application/javascript    "access plus 1 hour"
     ExpiresByType application/json             "access plus 1 hour"
     ExpiresDefault                             "access plus 10 days"
-</IfModule>
-
-RewriteEngine on
-
-# Remove trailing slash from non-filepath urls
-RewriteCond %{REQUEST_URI} /(.+)/$
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule ^ https://apisix.apache.org/%1 [R=301,L]
-
-# Include trailing slash on directory 
-RewriteCond %{REQUEST_URI} !(.+)/$
-RewriteCond %{REQUEST_FILENAME} -d
-RewriteRule ^(.+)$ https://apisix.apache.org/$1/ [R=301,L]
+</IfModule>
\ No newline at end of file
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index a4f94918dfa..f4dc6c750c0 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -14,7 +14,6 @@ module.exports = {
     'Apache APISIX is a dynamic, real-time, high-performance Cloud-Native API 
gateway, based on the Nginx library and etcd.',
   url: 'https://apisix.apache.org',
   baseUrl: '/',
-  trailingSlash: false,
   organizationName: 'Apache',
   projectName: 'apisix-website',
   favicon: 'img/favicon.png',

Reply via email to