无法从基于CI的站点删除index.php [英] Cannot remove index.php from url CI based site

查看:155
本文介绍了无法从基于CI的站点删除index.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有基于代码Igniter的网站,我有ubuntu 12.04在/ var / www / mysite文件夹
我的ubuntu作为一个服务器,所以我通过其他计算机访问我的网站,但两个计算机都在局域网。我使用 http://xxx.yyy.zzz.ttt/mysite 网址访问它。 / p>

我遇到的问题是,我不能使用没有index.php的url。
所以我有 http://xxx.yyy.zzz.ttt/ mysite / index.php / phpinfo 访问我的控制器phpinfo,而不是 http:// xxx .yyy.zzz.ttt / mysite / phpinfo



我已经好好地说明了mod_revrite在这个这里
并且检查mysite中的文件夹,子文件夹777文件权限。



我还在.htaccess文件中添加了所有必要的规则,但仍未成功



解决方案

你知道问题是什么。



sites-available中的默认文件有选项



AllowOverride无/ var / wwww



我将它设置为All,它的工作。 :)



cheers:)


I have Code Igniter based site and I have it on ubuntu 12.04 in /var/www/mysite folder My ubuntu serves as a server so I access my site trough other computer, but both computers are on LAN network. I use http://xxx.yyy.zzz.ttt/mysite url to access it.

The problem I have is that I cannot use url without "index.php" in it. So I have http://xxx.yyy.zzz.ttt/mysite/index.php/phpinfo To acces my controller phpinfo instead of http://xxx.yyy.zzz.ttt/mysite/phpinfo

I have cheked well that mod_revrite works well with this here And also checked that the folder, files and subfolders in mysite have all 777 file permissions.

I also added all necessary rules in .htaccess file but still no success

Any idea what is causing this.

解决方案

Do you know what was the issue.

The default file in sites-available had option

AllowOverride None for /var/wwww

I set it to All and it worked out. :)

cheers :)

这篇关于无法从基于CI的站点删除index.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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