Fix internal redirect loop on trailing-slash URLs

This commit is contained in:
Peter Foster
2026-03-02 11:08:53 +00:00
parent 999689071a
commit 89a791e187

View File

@@ -178,7 +178,7 @@ Options -Indexes
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+?)/?$ $1.php [L] RewriteRule ^(.+?)/?$ $1.php [END]
# Security rules # Security rules
RewriteRule ^logs(/.*)?$ - [F,L] RewriteRule ^logs(/.*)?$ - [F,L]