: Ich bin in CakePHP Laden Standard-Controller als Seiten versuchenCakePHP 2.4.5 Standard-Controller nicht geladen
Das ist mein Weg ist:
Router::redirect ('/', array('controller' => 'pages', 'action' => 'display'));
Router::connect('/pages/**', array('controller' => 'pages', 'action' => 'display'));
Als ich "http://localhost/project/index.php" dann seine Arbeits laufen in Ordnung, aber mit "http://localhost/project/" seinen nicht geladen Standard-Controller (Pages)
Ohne .htaccess & mit h versuchen taccess es gibt dasselbe Problem.
Dies ist Fehler:
Controller class ProjectController could not be found.
Fehler:
The requested address '/project/index.php/project/' was not found on this server.
Haben Sie '.htaccess' Datei geändert –
Ja, ich teste ed mit htaccess und ohne .htaccess aber nicht standardmäßig auf root "/" –
dies mein .htaccess ist (Webroot): RewriteEngine On RewriteCond% {REQUEST_FILENAME} -d RewriteCond% {REQUEST_FILENAME }! -f RewriteRule^(. *) $ index.php? url = $ 1 [QSA, L] –