3

I'm using Laravel 5 with WAMP on my local machine, no virtualization. After creating a fresh project using Composer called "LaravelProject", I can't seem to get my routes working at all. What I've already done:

  • Edited httpd.conf to uncomment the line

    LoadModule rewrite_module modules/mod_rewrite.so

  • Edited the /public/.htaccess file to be

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

  • Refreshed WAMP

  • "localhost/laravelproject/public" works
  • "localhost/laravelproject/public/index.php/signup" works
  • "localhost/laravelproject/public/signup" throws the NotFoundHttpException

The error:

Sorry, the page you are looking for could not be found.
NotFoundHttpException in RouteCollection.php line 161

routes.php:

Route::get('/', function() {
    return view('welcome');
});


Route::get('/signup', function() {
    return view('auth.signup');
});

All other questions I've found say that it's an .htaccess and mod_rewrite problem, but I have already tried those solutions. This is a completely fresh installation, the only extra file is the signup.blade.php view. Please help!

Aitalas
  • 31
  • 2

0 Answers0