Php 导航错误-编码点火器
使用codeigniter开发应用程序后,我已将文件上载到服务器。我可以成功打开主页,但无法进一步导航。当我导航时,显示Php 导航错误-编码点火器,php,codeigniter,Php,Codeigniter,使用codeigniter开发应用程序后,我已将文件上载到服务器。我可以成功打开主页,但无法进一步导航。当我导航时,显示404错误。应用程序的所有页面都在文件夹中 还将baseurl指定为当前文件夹: http://www.xxxx.com/abc/ 路线: $route['login'] = "home/login"; 作为Codeigniter的初学者,他对发生的事情没有任何线索。 注意:更新的Htaccess文件: IndexIgnore * ErrorDocument 404 /as
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.phphttp://www.xxxx.com/index.php/abc/
routes.php
如下:$route[“login(.*)”]=“home/login$1”代码>然后,尝试http://www.xxxx.com/index.php/abc/
如果成功,请添加新的htaccess。求助于