I have a problem and I still can't fix that. I know that there are similars question here on SO, but nothing of that worked.
I use restful controllers.
When I visit http://localhost/project/public/subsite
it works.
But when I visit http://localhost/project/public/subsite/
it redirects me to http://localhost/subsite
This is my current .htaccess file:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L] </IfModule>
I already tried solutions from these questions: laravel trailing Slashes redirect to localhost mod_rewrite remove trailing slash not working in Laravel
But the problem remains the same.