Fix internal redirect loop on trailing-slash URLs
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user