PHP zend framework框架 The requested URL /2/public/index was not found on this server.初学zend framework,框架是用zend studio生成的,按照书上说:输入应该是等效的,但为什么我输入http://localhost/2/public/能正常显示,

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 14:07:42
PHP zend framework框架 The requested URL /2/public/index was not found on this server.初学zend framework,框架是用zend studio生成的,按照书上说:输入应该是等效的,但为什么我输入http://localhost/2/public/能正常显示,

PHP zend framework框架 The requested URL /2/public/index was not found on this server.初学zend framework,框架是用zend studio生成的,按照书上说:输入应该是等效的,但为什么我输入http://localhost/2/public/能正常显示,
PHP zend framework框架 The requested URL /2/public/index was not found on this server.
初学zend framework,框架是用zend studio生成的,按照书上说:输入
应该是等效的,但为什么我输入http://localhost/2/public/能正常显示,但其他2个就都说The requested URL /2/public/index was not found on this server.倒是输入http://localhost/2/public/index.php能正常显示出来
.htaccess这些都是studio自动生成了,controllers下存在IndexController.php,其中也定义有indexAction(),不过是空着的,这些都是自动生成的,apache服务器相应的设置也都做了
zend studio版本8.0.0
zend framework版本1.11
php版本5.2.14
基本都是最新版本,话说这么基础的问题跟版本关系应该也不大吧
望做过zend framework开发的高手帮忙解答下,URL连接在服务器找不到这样简单的回答就免了,这我也知道

PHP zend framework框架 The requested URL /2/public/index was not found on this server.初学zend framework,框架是用zend studio生成的,按照书上说:输入应该是等效的,但为什么我输入http://localhost/2/public/能正常显示,
应该是mod_rewrite没有启用,检查一下httpd.conf配置文件.
同时把虚拟主机配置文件中的AllowOverride None改为AllowOverride All
重启apache.