CakePHP 404 on existing controller

interium

New Member
(I'm really hoping I put in enough due dilligence on google and the search bar before posting this)I'm getting started with CakePHP and just created my first model, controller, and view.When I browse to http://localhost/~me/MyApp/Lists I get a 404 and I'm not sure whyHere's my controller\[code\]<?php class ListsController extends AppController { var $name = 'Lists'; function index() { $this->set('lists', $this->List->find('all')); } }?>\[/code\]I would think it's a .htaccess issue but when I browse to http://localhost/~me/MyApp/app or http://localhost/~me/MyApp/index I get a "Missing Controller" error page. Granted both of these URLs would otherwise point at an actual file or directory.Can anyone tell me why I would be getting this 404 on my controllers?Update for a couple comments left below (see the answer by Leo)My .htacces for the application root\[code\]<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L]</IfModule>\[/code\]My .htaccess for the CakePHP webroot\[code\]<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]</IfModule>\[/code\]
 
Back
Top