我刚刚按照Installation Guide
在我的Linux系统上安装了Flexi Auth插件当我导航到代码http://localhost/codeigniter/
时,它正在显示花哨的演示页面。但是,当我从顶部菜单点击“演示”链接时,显示页面未找到错误
Not Found
The requested URL /auth_lite/demo was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80
我是否需要配置routes.php
?在安装指南中,它仅表示编辑默认控制器,如$route['default_controller'] = "auth_lite/index";
顺便说一句,我是CodeIgniter的新手。如果有人遇到这个问题,请帮助我。
答案 0 :(得分:0)
搜索'flexi_cart'的源文件, 特别是在三个* library.php文件中, 有一些字符串条目,必须是 已更改为您自己的目录。
似乎可以解决这些变化。
答案 1 :(得分:-1)
听起来你的.htaccess文件无法正常工作或未正确设置。
服务器正在寻找filepath / auth_lite / demo,它应该将该字符串传递给index.php
。
这是CI最常见的.htaccess文件之一。试试吧,看看:
<IfModule mod_rewrite.c>
RewriteEngine On
# developing in a subfolder? (http://localhost/app/) change this to app/
RewriteBase /
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ index.php/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
#Submitted by Michael Radlmaier (mradlmaier)
RewriteCond $1 !^(index\.php|images|robots\.txt|css|js|swf|wymeditor|galleries|ffeiliau)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
试一试,看看。