2014-01-08 55 views
0

嗨我正在嘗試使用CodeIgniter A3MCodeigniter A3M管理控制器

我想查看管理用戶和管理權限等,但不斷說錯誤404我是管理員我剛剛爲我自己創建了一個帳戶。

+0

你檢查日誌?我假設你知道404是什麼意思,可能是錯誤地設置了CodeIgniter'.htaccess'。查看日誌,確保你的重寫正在工作並更新你的問題,提供的細節很少。 – Jakub

回答

1

這似乎是您的CodeIgniter設置的問題。 A3M中的所有鏈接都已假定您已採取措施,使用.htaccess從路徑中刪除index.php。你可以閱讀user guide關於如何做到這一點。一般來說,你應該在根有這樣的.htaccess文件:

RewriteEngine on 
RewriteCond $1 !^(index\.php|images|robots\.txt) 
RewriteRule ^(.*)$ /index.php/$1 [L] 

也檢查你有正確according to A3M設置的所有其他設置。

0

我想你一定喜歡這個

RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule .* index.php/$0 [PT,L] 
0

它的工作對我來說代碼.htacess文件

我的代碼.htacess

DirectoryIndex index.php  
RewriteEngine on  
RewriteCond %{REQUEST_FILENAME} !-f  
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteCond $1 !^(index\.php|robots\.txt)  
RewriteCond $1!^(index\.php|resource|system|user_guide|bootstrap|robots\.txt|favicon\.ico)  
RewriteRule ^(.*)$ index.php?/$1 [L]