Hello guys, I have a problem and I can't find a solution for it. I have googled and tried the solutions from there, but the problem stays. I also asked on stackoverflow - didn't help. (http://stackoverflow.com/questions/24600848/laravel-4-2-trailing-slash-leads-to-base-uri)
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 .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>
Did you even try my answer from StackOverflow?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community