在我的本地计算机上,我使用xampp和codeigniter正在运行,但在将codeigniter应用程序移到服务器后,我得到404错误未找到。codeIgniter 404找不到
The requested URL /app/index.php/Welcome was not found on this server.
Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny16 with Suhosin-Patch Server at XXXXXXXXX.com.au Port 81
我试图改变配置
$config['base_url']= 'http://XXXXXXXXX.com.au/';
$config['uri_protocol'] = 'REQUEST_URI';
但它并没有解决问题。有任何想法吗?
我不太确定,因为codeigniter的最小值是5.1 http://codeigniter.com/user_guide/general/requirements.html – user1299846
您以前在服务器上运行过PHP文件吗?我怀疑你可能有服务器配置问题。 –
你将需要给我们更多的继续。所有这些答案都是很好的答案,但我们在黑暗中拍摄。文件结构是什么样子等等? – swatkins