Codeigniter web应用程序不工作与linux,但在这里在windows是罚款 [英] Codeigniter web app is not working with the linux but here on windows is fine

查看:156
本文介绍了Codeigniter web应用程序不工作与linux,但在这里在windows是罚款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Codeigniter网路应用程式无法使用linux,但这里的Windows是很好



我在Windows和i上安装wamp伺服器设置我的应用程序(codeigniter)有工作正常,但在这里linux(Centos)其他php应用程序只是woking罚款,但只有
这个codeigniter应用程序不工作




解决方案

如@Orangepill的注释中所述,它可以是区分大小写的unix文件系统,在我自己的经验,它连接到 .htaccess 不同地解析: p>

  RewriteEngine on 
RewriteCond $ 1!^(index\.php | images | robots\.txt)
RewriteRule ^(。*)$ /index.php/$1 [L]

linux因为它需要在 index.php 后面加上符号,所以你可以尝试:

  RewriteRule ^(。*)$ /index.php?/$1 [L] 


Codeigniter web app is not working with the linux but here on windows is fine

i have install wamp server on my windows and i set my application(codeigniter) there is working fine but here on linux(Centos) other php application are just woking fine but only this codeigniter app is not working

there there any pakage does it requires or ...

thanks

解决方案

As stated in the comment by @Orangepill it could be either case sensitive unix filesystem either, in my own experience it was connected to the .htaccess parsed differently:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Sometimes these fail on linux as it requres an ? sign after index.php so you can try:

RewriteRule ^(.*)$ /index.php?/$1 [L]

这篇关于Codeigniter web应用程序不工作与linux,但在这里在windows是罚款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆