Problem:
my routes not working except the root home page, I'm searching for two days to find a solution to this problem and what I found that I should change .htaccess
file but solutions didn't fix any for my case, at first the url localhost/quotes/public
was working well with me, but at some point I'm not sure what is it this issue showed up
what I tried:
- create another route and I made sure that no routes are working only home route, still not working except home
- tried to change OverrideMode on my XAMP from None to All, didn't fix any
- tried to type manually localhost/quotes/public/index.php BOOM everything works ..
my htaccess file:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
working on:
- Windows 10
- XAMP
- Laravel 5.2.35