0

我刚刚完全按照安装指南在我的 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 很陌生。如果有人遇到这个问题,请帮助我。

4

2 回答 2

0

在源文件中搜索“flexi_cart”,特别是在三个 *library.php 文件中,有一些字符串条目,必须更改为您自己的目录。

似乎适用于这种变化。

于 2013-11-14T16:49:42.253 回答
-1

听起来您的 .htaccess 文件要么不工作,要么没有按应有的设置。

服务器正在寻找文件路径 /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>

试试看。

于 2013-09-10T09:47:41.037 回答