Laravel 5.2 routing. Struggling for days now

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_negotiation.c>
    Options -MultiViews

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]


My storage and bootstrap folders does have 777 permissions.

I really need help on this one, I am out of options.



I had the same problem. After many hours trying to get this done, I figured out that my .htaccess file was the problem.

Just remove any blank space and put the file in UTF8. Sometimes windows add special characters which causes the problem.

Need Your Help

WCF Communication through SSL : Issue with WCF access due to Third-party Trusted Root Certification Authorities

.net wcf security ssl

I have a WCF service which uses certificate authentication with Transport security. The service is deployed in a windows service, uses wshttp binding.