0

By default in Laravel if there is / in the end of url it redirects you to link without / in the end. Is it possible to disable this feature and allow / in the end of url?

Kin
  • 4,466
  • 13
  • 54
  • 106

1 Answers1

-2

edit .htaccess file in public folder

change this :
RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1/ [L,R=301]

to :
RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*[^/])$ /$1/ [L,R]