Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 导航错误-编码点火器_Php_Codeigniter - Fatal编程技术网

Php 导航错误-编码点火器

Php 导航错误-编码点火器,php,codeigniter,Php,Codeigniter,使用codeigniter开发应用程序后,我已将文件上载到服务器。我可以成功打开主页,但无法进一步导航。当我导航时,显示404错误。应用程序的所有页面都在文件夹中 还将baseurl指定为当前文件夹: http://www.xxxx.com/abc/ 路线: $route['login'] = "home/login"; 作为Codeigniter的初学者,他对发生的事情没有任何线索。 注意:更新的Htaccess文件: IndexIgnore * ErrorDocument 404 /as

使用codeigniter开发应用程序后,我已将文件上载到服务器。我可以成功打开主页,但无法进一步导航。当我导航时,显示
404错误
。应用程序的所有页面都在文件夹中

还将baseurl指定为当前文件夹:

http://www.xxxx.com/abc/
路线:

$route['login'] = "home/login";
作为Codeigniter的初学者,他对发生的事情没有任何线索。 注意:更新的Htaccess文件:

IndexIgnore *
ErrorDocument 404 /assets/php/404.php
ErrorDocument 403 /assets/php/403.php

RewriteEngine on
RewriteBase /

#These are the original rewrites, but might cause problems with some server configs.
#RewriteCond $1 !^(index\.php|assets|user_guide|robots\.txt)
#RewriteRule ^(.*)$ /index.php/$1 [L]

#These conditions are tested to work, and should be a better alternative to the commented ones above.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]


<FilesMatch "\.(ico|jpg|jpeg|png|gif)$">
Header set Cache-Control "max-age=290304000, public"
</FilesMatch>
IndexIgnore*
ErrorDocument 404/assets/php/404.php
ErrorDocument 403/assets/php/403.php
重新启动发动机
重写基/
#这些是原始重写,但可能会导致某些服务器配置出现问题。
#1美元^(索引\.php |资产|用户指南| robots\.txt)
#重写规则^(.*)$/index.php/$1[L]
#这些条件已经过测试,可以正常工作,应该是上述条件的更好替代方案。
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php?/$1[L]
标题集缓存控制“最大年龄=290304000,公共”

有什么帮助吗?

以及您的
.htaccess
看起来怎么样?签入根目录并粘贴代码,如果不存在,则创建一个新的one@Viral没有htaccess addedyou可能需要index.php
http://www.xxxx.com/index.php/abc/
routes.php
如下:
$route[“login(.*)”]=“home/login$1”然后,尝试
http://www.xxxx.com/index.php/abc/
如果成功,请添加新的htaccess。求助于