If I remember correctly, Laravel automatically removes the trailing slash from URLs unless it's a folder. Here's what's in the .htaccess
file in the /public/ folder:
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
Try replacing it with something like this:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)([^/])$ /$1$2/ [L,R=301]
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community