2013-06-28 39 views
0

介紹CakePHP 1.3我對URL缺少控制器錯誤www.example.com/about/CakePHP的1.3失蹤控制器

Error: AboutController could not be found. 

Error: Create the class AboutController below in file: app/controllers/about_controller.php 

<?php 
class AboutController extends AppController { 

var $name = 'About'; 
} 
?> 

我也知道,問題出在htaccess的,因爲該網站是直到我意外刪除了/ app/webroot /中的.htaccess。以下是我目前作爲我的.htaccess,但必須有一些缺失。任何幫助將不勝感激!

<IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] 
</IfModule> 
+0

難道僅僅是單個控制器或同樣的問題對於所有控制器? –

+0

從https://github.com/cakephp/cakephp/tags下載CakePHP框架文件夾並替換您想要的文件。 –

回答