Skip to content

Commit fd82876

Browse files
committed
enforced trailing slash
Signed-off-by: bidi <bidi@apidemia.com>
1 parent 757ed66 commit fd82876

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

public/.htaccess

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ RewriteCond %{REQUEST_FILENAME} -l [OR]
88
RewriteCond %{REQUEST_FILENAME} -d
99
RewriteRule ^.*$ - [NC,L]
1010

11+
RewriteCond %{REQUEST_METHOD} GET|HEAD
12+
RewriteCond %{REQUEST_URI} !/$
13+
RewriteCond %{REQUEST_URI} !\.[^/]+$
14+
RewriteRule ^(.*)$ /$1/ [R=301,L]
15+
1116
# The following rewrites all other queries to index.php. The
1217
# condition ensures that if you are using Apache aliases to do
1318
# mass virtual hosting, the base path will be prepended to

0 commit comments

Comments
 (0)