title: CakePHP 3 The requested address '/' was not found on this server when debug = false
body: <p>I created a web application in CakePHP 3 and everything works find when I have <code>debug = true</code>. When I set <code>debug = false</code>, I am unable to access the base URL and get the message below.</p>
  
  <blockquote>
    <p>Not Found</p>
    
    <p>Error: The requested address '/' was not found on this server.</p>
  </blockquote>
  
  <p>I checked my route file and it was still pointing /Pages/display with the code below.</p>
  
  <pre><code>$routes-&gt;connect('/', ['controller' =&gt; 'Pages', 'action' =&gt; 'display', 'home']);
  </code></pre>
  
  <p>The template for <code>src/Template/Pages/home.ctp</code> exists so I am totally clueless at this point why it won't work when debug is disabled.</p>
  
  <p>I went as far as creating a new CakePHP 3 site with composer then disabling debug but get the same issue.</p>
  
  <p>I looking into my error log and found this.</p>
  
  <pre><code>2016-02-03 09:53:11 Error: [Cake\Network\Exception\NotFoundException] Not Found
  Request URL: /
  Stack Trace:
  #0 /var/www/html/printsling/vendor/cakephp/cakephp/src/View/View.php(992): include()
  #1 /var/www/html/printsling/vendor/cakephp/cakephp/src/View/View.php(952): Cake\View\View-&gt;_evaluate('/var/www/html/p...', Array)
  #2 /var/www/html/printsling/vendor/cakephp/cakephp/src/View/View.php(587): Cake\View\View-&gt;_render('/var/www/html/p...')
  #3 /var/www/html/printsling/vendor/cakephp/cakephp/src/Controller/Controller.php(612): Cake\View\View-&gt;render('home', NULL)
  #4 /var/www/html/printsling/src/Controller/PagesController.php(66): Cake\Controller\Controller-&gt;render('home')
  #5 [internal function]: App\Controller\PagesController-&gt;display('home')
  #6 /var/www/html/printsling/vendor/cakephp/cakephp/src/Controller/Controller.php(430): call_user_func_array(Array, Array)
  #7 /var/www/html/printsling/vendor/cakephp/cakephp/src/Routing/Dispatcher.php(114): Cake\Controller\Controller-&gt;invokeAction()
  #8 /var/www/html/printsling/vendor/cakephp/cakephp/src/Routing/Dispatcher.php(87): Cake\Routing\Dispatcher-&gt;_invoke(Object(App\Controller\PagesController))
  #9 /var/www/html/printsling/webroot/index.php(37): Cake\Routing\Dispatcher-&gt;dispatch(Object(Cake\Network\Request), Object(Cake\Network\Response))
  #10 {main}
  </code></pre>
  
  <p>Any help is appreciated.</p>