Update trailing slash detection

Co-authored-by: Michal Sniatala <michal@sniatala.pl>
This commit is contained in:
Alexandre "Moutarde" S 2020-07-20 14:56:12 +02:00 committed by GitHub
parent 95208c9886
commit 73a774500b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,8 @@ Options All -Indexes
# Redirect Trailing Slashes...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ $1 [L,R=301]
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Rewrite "www.example.com -> example.com"
RewriteCond %{HTTPS} !=on