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,306
  • 13
  • 50
  • 97

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]