title: Laravel 5 - Routes error: NotFoundHttpException
body: <p>Similar to the unsolved 
  <a href="https://stackoverflow.com/questions/33116498/wamp-laravel-5-routes-not-working-notfoundhttpexception">WAMP, Laravel 5: Routes not working - NotFoundHttpException</a></p>
  
  <p>I am trying to pick up Laravel but the routes do not work at all (save for '/').</p>
  
  <p>Using WAMP on Windows 7, I have done the following already in an attempt to rectify the situation;</p>
  
  <p><strong>Enabled</strong> <code>rewrite_module</code></p>
  
  <p><strong>My .htaccess:</strong></p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      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]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p><strong>My routes.php:</strong></p>
  
  <pre><code>&lt;?php
  
  Route::get('contact', 'PagesController@contact');
  
  Route::get('/', function () {
      return view('welcome');
  });
  
  
  Route::group(['middleware' =&gt; ['web']], function () {
      //
  });
  </code></pre>
  
  <p><strong>My PagesController.php:</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  
  class PagesController extends Controller
  {
      //
      public function contact()
      {
          return 'Test Contact';
      }
  }
  </code></pre>
  
  <p>When I go to the aliased <a href="http://localhost/laravel.dev/" rel="nofollow noreferrer">http://localhost/laravel.dev/</a> it shows the landing page, but when I navigate to <a href="http://localhost/laravel.dev/contact" rel="nofollow noreferrer">http://localhost/laravel.dev/contact</a> it returns:</p>
  
  <pre><code>NotFoundHttpException in RouteCollection.php line 161:
  in RouteCollection.php line 161
  at RouteCollection-&gt;match(object(Request)) in Router.php line 802
  at Router-&gt;findRoute(object(Request)) in Router.php line 670
  at Router-&gt;dispatchToRoute(object(Request)) in Router.php line 654
  at Router-&gt;dispatch(object(Request)) in Kernel.php line 246
  at Kernel-&gt;Illuminate\Foundation\Http\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
  at Pipeline-&gt;Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
  at CheckForMaintenanceMode-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  at Pipeline-&gt;Illuminate\Routing\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
  at Pipeline-&gt;then(object(Closure)) in Kernel.php line 132
  at Kernel-&gt;sendRequestThroughRouter(object(Request)) in Kernel.php line 99
  at Kernel-&gt;handle(object(Request)) in index.php line 54
  </code></pre>
  
  <p>Any help will be greatly appreciated as I have been reading up on and attempting solutions for days now.</p>