2014-01-08 53 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]