问题描述
我有基于代码Igniter的网站,我有ubuntu 12.04在/ var / www / mysite文件夹
我的ubuntu作为一个服务器,所以我通过其他计算机访问我的网站,但两个计算机都在局域网。我使用网址访问它。 / p>
我遇到的问题是,我不能使用没有index.php的url。
所以我有访问我的控制器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 hereAnd 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!