PHP zend framework框架 The requested URL /2/public/index was not found on this server.初学zend framework,框架是用zend studio生成的,按照书上说:输入应该是等效的,但为什么我输入http://localhost/2/public/能正常显示,
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/01 23:07:37
![PHP zend framework框架 The requested URL /2/public/index was not found on this server.初学zend framework,框架是用zend studio生成的,按照书上说:输入应该是等效的,但为什么我输入http://localhost/2/public/能正常显示,](/uploads/image/z/8553976-16-6.jpg?t=PHP+zend+framework%E6%A1%86%E6%9E%B6+The+requested+URL+%2F2%2Fpublic%2Findex+was+not+found+on+this+server.%E5%88%9D%E5%AD%A6zend+framework%2C%E6%A1%86%E6%9E%B6%E6%98%AF%E7%94%A8zend+studio%E7%94%9F%E6%88%90%E7%9A%84%2C%E6%8C%89%E7%85%A7%E4%B9%A6%E4%B8%8A%E8%AF%B4%EF%BC%9A%E8%BE%93%E5%85%A5%E5%BA%94%E8%AF%A5%E6%98%AF%E7%AD%89%E6%95%88%E7%9A%84%2C%E4%BD%86%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E8%BE%93%E5%85%A5http%3A%2F%2Flocalhost%2F2%2Fpublic%2F%E8%83%BD%E6%AD%A3%E5%B8%B8%E6%98%BE%E7%A4%BA%2C)
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.