From fd82876f3ea0d693e7bc815b0ed3b29fdc8a6b7d Mon Sep 17 00:00:00 2001 From: bidi Date: Thu, 20 Aug 2026 19:27:56 +0300 Subject: [PATCH] enforced trailing slash Signed-off-by: bidi --- public/.htaccess | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/.htaccess b/public/.htaccess index cd6355d3..534d4ca7 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -8,6 +8,11 @@ RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] +RewriteCond %{REQUEST_METHOD} GET|HEAD +RewriteCond %{REQUEST_URI} !/$ +RewriteCond %{REQUEST_URI} !\.[^/]+$ +RewriteRule ^(.*)$ /$1/ [R=301,L] + # The following rewrites all other queries to index.php. The # condition ensures that if you are using Apache aliases to do # mass virtual hosting, the base path will be prepended to