Hi
I have been sitting for days now and my routing does not want to work.
I installed Laravel on Amazon Linux AMI (about 8 times) and I CANNOT get routing to work.
I added one route to test in routing.php and this works and I see the login page:
Route::get('login', function() {
return View::make('login');
});
I copy the same view to a users subfolder and if I do this it does not work.
Route::get('login', function() {
return View::make('users.login');
});
Basically it looks like any subfolder I call does not work and I get a 500 error.
I have installed laravel in the /var/www folder and changed the directory and documentroot to point to /var/www/public folder.
This is my .htaccess file in the public folder:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteBase /
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Send requests to public directory...
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
</IfModule>
My storage and bootstrap folders does have 777 permissions.
I really need help on this one, I am out of options.
Thanks.
Im still on 5.1 lts but..
Shouldnt you be using users.login (dot) instead of slash??
Sorry for brevity, on mobile
first check your log files, both the apache error log file and the php error log. All these errors are suppose to print there.
I'm predicting you haven't installed the mod-rewrite extension for apache. but without coming in to conclusions first check your log files.
Thanks all for replies. I have checked all log files and there is nothing, nada. I have moved my code over to cloudways started it up and it worked.
Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community