This is an automated email from the ASF dual-hosted git repository. juzhiyuan pushed a commit to branch revert-1083-try-fix-trailing-slash in repository https://gitbox.apache.org/repos/asf/apisix-website.git
commit 0bb520001e440a336a06f512ccc93c1c3991f62b Author: 琚致远 <[email protected]> AuthorDate: Thu May 12 14:55:31 2022 +0800 Revert "fix: rm trailing slash (#1083)" This reverts commit 2313426bab058c964614b7c60486f6e640c90853. --- .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',
